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: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 04 Aug 2014 17:26:44 +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 #16 from Frank Ch. Eigler <fche at redhat dot com> ---
> The tricky part would be initially populating
> the array with processes that already exist.
Yup.
A gross hack could look thusly:
function populate_foo () %{ iterate across processes, call into stap
array-setting routines %}
probe begin { populate_foo() }
A nice hack could look thusly:
probe kprocess.preexisting { pid2(...)=.. }
# new probe type, triggered at STARTING time
# from a task-work callback added for each
# preexisting process/thread?
(this pattern could be replicated to provide iteration of
preexisting other kernel/userspace objects like network
connections, file descriptors, ...)
--
You are receiving this mail because:
You are the assignee for the bug.