Hi Dave, I am here with submitting the patch to incorporate -f option to carsh ps command. Which will display as same as ps command with command line arguments. Sample output of normal ps in crash crash> ps PID PPID CPU TASK ST %MEM VSZ RSS COMM 0 0 0 33a4c8 RU 0.0 0 0 [swapper] 0 1 1 f85a718 RU 0.0 0 0 [swapper] 2357 1 0 e8575c8 IN 0.1 11320 344 dbus-daemon 2358 1 1 ede30f0 IN 0.1 11320 344 dbus-daemon 2394 1 0 e87aa18 IN 0.2 75280 496 automount 2395 1 0 eea2718 IN 0.2 75280 496 automount 2396 1 1 fa4d7c8 IN 0.2 75280 496 automount 2399 1 0 eec6ff0 IN 0.2 75280 496 automount 2402 1 1 ee3b7c8 IN 0.2 75280 496 automount 2415 1 0 e9a6818 IN 0.0 7200 44 sshd 2425 1 0 eea0a18 IN 0.5 94944 1396 setroubleshootd 2426 1 1 ede2340 IN 0.5 94944 1396 setroubleshootd 2427 1 0 ee06140 IN 0.0 64452 28 cupsd 2446 1 0 fa336c8 IN 0.2 10464 476 sendmail 2456 1 0 ee3b0f0 IN 0.2 9320 416 sendmail 2468 1 0 ee5f5c8 IN 0.1 58628 188 crond 2491 1 1 ef417c8 IN 0.0 4516 80 xfs 2513 1 0 e8fe340 IN 0.1 2548 200 atd 2525 1 1 e982340 IN 2.7 87636 7112 yum-updatesd Sample output of ps -f in crash crash> ps -f PID PPID CPU TASK ST %MEM VSZ RSS COMM 0 0 0 33a4c8 RU 0.0 0 0 [swapper] 0 1 1 f85a718 RU 0.0 0 0 [swapper] 1914 2 0 ee054c8 IN 0.0 0 0 [kjournald] 2210 1 1 fab4040 IN 0.1 10300 280 auditd 2211 1 0 e8ff7c8 IN 0.1 10300 280 auditd 2212 2210 1 eea34c8 IN 0.4 65244 992 python /sbin/audispd 2213 2 1 ee5cdf0 IN 0.0 0 0 [kauditd] 2227 1 0 e878ff0 IN 0.0 15544 84 /usr/sbin/restorecond 2237 1 1 fa26140 IN 0.1 1976 188 syslogd -m 0 2240 1 1 eec55c8 IN 0.0 1908 16 klogd -x 2255 1 0 ef434c8 IN 0.1 2468 248 mcstransd 2267 1 0 f980818 IN 0.0 2088 12 portmap 2282 1 1 e854718 IN 0.5 94944 1396 /usr/bin/python -E /usr/sbin/setroubleshootd 2302 1 0 e9e90f0 IN 0.0 2096 16 rpc.statd 2332 2 0 f96e718 IN 0.0 0 0 [rpciod/0] 2333 2 1 ee5e818 IN 0.0 0 0 [rpciod/1] 2340 1 1 ef40340 IN 0.0 6256 52 rpc.idmapd 2357 1 0 e8575c8 IN 0.1 11320 344 dbus-daemon --system 2358 1 1 ede30f0 IN 0.1 11320 344 dbus-daemon --system 2394 1 0 e87aa18 IN 0.2 75280 496 automount 2395 1 0 eea2718 IN 0.2 75280 496 automount 2396 1 1 fa4d7c8 IN 0.2 75280 496 automount 2399 1 1 eec6ff0 IN 0.2 75280 496 automount 2402 1 1 ee3b7c8 IN 0.2 75280 496 automount 2415 1 0 e9a6818 IN 0.0 7200 44 /usr/sbin/sshd 2425 1 0 eea0a18 IN 0.5 94944 1396 /usr/bin/python -E /usr/sbin/setroubleshootd 2426 1 1 ede2340 IN 0.5 94944 1396 /usr/bin/python -E /usr/sbin/setroubleshootd 2427 1 0 ee06140 IN 0.0 64452 28 cupsd 2446 1 0 fa336c8 IN 0.2 10464 476 sendmail: accepting connecti 2456 1 0 ee3b0f0 IN 0.2 9320 416 sendmail: Queue runner@01:00:00 for /var/spo 2468 1 0 ee5f5c8 IN 0.1 58628 188 crond 2491 1 1 ef417c8 IN 0.0 4516 80 xfs -droppriv -daemon 2513 1 0 e8fe340 IN 0.1 2548 200 /usr/sbin/atd 2525 1 1 e982340 IN 2.7 87636 7112 /usr/bin/python /usr/sbin/yum-updatesd COMM will be with command line arguments. Patch : (See attached file: crash-ps-f-opt.patch) Regards Hariharan T.S. System Software Engineer, zSeries - Red Hat Enterprise Linux, India Software Lab - IBM Systems & Technology Group, Embassy Golf Links Business Park, Bangalore, INDIA Direct +91-80-4177-7545 e-mail: hariharan.ts@xxxxxxxxxx India Software Lab
Attachment:
crash-ps-f-opt.patch
Description: Binary data
-- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility