• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/netbsd-tests/bin/ps/

Lines Matching refs:pid

94 	default_keywords='pid tty stat time command'
95 j_keywords='user pid ppid pgid sess jobc state tt time command'
96 l_keywords='uid pid ppid cpu pri nice vsz rss wchan state tt time command'
97 s_keywords='uid pid ppid cpu lid nlwp pri nice vsz rss wchan lstate tt ltime command'
98 u_keywords='user pid %cpu %mem vsz rss tt state start time command'
99 v_keywords='pid state time sl re pagein vsz rss lim tsiz %cpu %mem command'
102 # Convert a list of keywords like "pid comm" to a regexp
203 "the pid column"
209 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
211 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
213 "$(echo "${default_keywords}" | sed -e 's/pid/pid %cpu %mem/')"
227 check_heading_keywords '-o pid,%cpu,%mem' \
228 "pid %cpu %mem"
229 check_heading_keywords '-o pid -o %cpu,%mem' \
230 "pid %cpu %mem"
232 "pid %cpu %mem"
235 "pid %cpu %mem"
236 # Check missing pid
239 # Check pid present but not first
240 check_heading_keywords '-o comm,pid' \
241 "comm pid"
255 check_heading_regexp '-o pid=PPP -o comm' \
257 check_heading_regexp '-o pid=PPP -o comm=CCC' \
259 check_heading_regexp '-o pid,comm=CCC' \
261 check_heading_regexp '-o pid -o comm=CCC' \
263 # Check missing pid
266 # Check pid present but not first
267 check_heading_regexp '-o comm=CCC -o pid=PPP' \
269 check_heading_regexp '-o comm,pid=PPP' \
284 check_heading_regexp '-o comm,pid==' \
286 check_heading_regexp '-o comm,pid=,' \
288 check_heading_regexp '-o pid=PPP,comm' \
289 '^ *PPP,comm$' # not like '-o pid=PPP -o comm'
290 check_heading_regexp '-o pid=PPP,comm=CCC' \
291 '^ *PPP,comm=CCC$' # not like '-o pid=PPP -o comm=CCC'
292 check_heading_regexp '-o comm,pid=PPP,QQQ' \
294 check_heading_regexp '-o comm,pid=ppid,tty=state' \
297 check_heading_regexp '-o comm,pid="PPP QQQ"' \
299 check_heading_regexp '-o comm,pid="PPP${tab}QQQ"' \
314 check_heading_regexp '-o pid=PPP -o comm=' \
316 check_heading_regexp '-o pid= -o comm=CCC' \
318 check_heading_regexp '-o pid -o comm=' \
320 # Check missing pid
325 # Check pid present but not first
326 check_heading_regexp '-o comm= -o pid=PPP' \
328 check_heading_regexp '-o comm,pid=' \
360 check_no_heading_line '-o pid= -o comm='
361 check_no_heading_line '-o pid= -o comm='
362 # Check missing pid
368 # Check pid present but not first
369 check_no_heading_line '-o comm= -o pid='
370 check_no_heading_line '-o ppid= -o pid= -o command='
383 check_heading_regexp '-o pid=PPP -o pid=QQQ' \
386 check_heading_regexp '-o pid=PPP -o pid' \
388 check_heading_regexp '-o pid -o pid=QQQ' \
391 check_heading_regexp '-o pid=PPP -o pid -o pid=QQQ' \