public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Does anybody have a tapset to get the command line of a task?
@ 2006-05-24 23:33 Yi Feng
  2006-05-25  8:51 ` Richard J Moore
  0 siblings, 1 reply; 4+ messages in thread
From: Yi Feng @ 2006-05-24 23:33 UTC (permalink / raw)
  To: systemtap

We already have pid(), tid() and execname() in tapset/context.stp. I'm
wondering if somebody has written a tapset to get the command line of
the (current) task as well. Looking at proc_pid_cmdline in
fs/proc/base.c, I understand this information is in the user memory
tracked from the mm struct of the task (instead of the task struct
itself), so there is much more indirection to get it than pid, tid and
execname.

Thanks,
Yi Feng

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-02 14:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-24 23:33 Does anybody have a tapset to get the command line of a task? Yi Feng
2006-05-25  8:51 ` Richard J Moore
2006-05-30 17:43   ` Yi Feng
2006-06-02 14:57     ` Richard J Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).