This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/6525] need utrace task-finder-based pid->execname, pid->cwd-path-name tables


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]