[Bug tapsets/6525] need utrace task-finder-based pid->execname, pid->cwd-path-name tables
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Aug 4 17:26:00 GMT 2014
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.
More information about the Systemtap
mailing list