diff options
-rw-r--r-- | sos/plugins/process.py | 9 |
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 : |