This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/6525] need utrace task-finder-based pid->execname, pid->cwd-path-name tables
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 04 Aug 2014 17:16:16 +0000
- Subject: [Bug tapsets/6525] need utrace task-finder-based pid->execname, pid->cwd-path-name tables
- Auto-submitted: auto-generated
- References: <bug-6525-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=6525
--- Comment #15 from David Smith <dsmith at redhat dot com> ---
(In reply to Frank Ch. Eigler from comment #14)
> e.g. approximately
>
> cat > tapset/linux/pid2cmdline.stp
> global __pid2cmdline%
> function pid2cmdline(p) { if (p in __pid2cmdline) return __pid2cmdline[p] }
> probe kprocess.exec_complete {
> __pid2cmdline(tid() /* or pid? */) = cmdline_str()
> }
> ^D
>
> etc.
That's an interesting idea. The tricky part would be initially populating the
array with processes that already exist.
--
You are receiving this mail because:
You are the assignee for the bug.