aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2015-05-31 16:19:29 +0200
committerBryn M. Reeves <bmr@redhat.com>2015-07-07 17:20:11 +0100
commit72e2e32eaa97c6c76b61635dd0fafeb4dcc1aa7d (patch)
treed72567a8859fbe61f631b677345c83ad0902693c
parent002cef3eddc288352d0b92f6272fbd2e85280e6e (diff)
downloadsos-72e2e32eaa97c6c76b61635dd0fafeb4dcc1aa7d.tar.gz
[process] Collect few "ps" outputs
Partially solves $570 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> (edits for readability & line length) Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/process.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/sos/plugins/process.py b/sos/plugins/process.py
index 6ae189b3..a643844c 100644
--- a/sos/plugins/process.py
+++ b/sos/plugins/process.py
@@ -23,13 +23,20 @@ class Process(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
profiles = ('system',)
def setup(self):
+ ps_axo = "ps axo"
+ # process group and thread options
+ ps_group_opts = "pid,ppid,user,group,lwp,nlwp,start_time,comm,cgroup"
+ ps_sched_opts = "flags,state,uid,pid,ppid,pgid,sid,cls,pri,addr,sz,"
+ ps_sched_opts += "wchan,stime,tty,time,cmd"
self.add_copy_spec("/proc/sched_debug")
self.add_cmd_output("ps auxwww", root_symlink="ps")
self.add_cmd_output("pstree", root_symlink="pstree")
self.add_cmd_output("lsof -b +M -n -l", root_symlink="lsof")
self.add_cmd_output([
"ps auxwwwm",
- "ps alxwww"
+ "ps alxwww",
+ "%s %s" % (ps_axo, ps_group_opts),
+ "%s %s" % (ps_axo, ps_sched_opts)
])
# vim: set et ts=4 sw=4 :