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 runtime/15982] process.end probes broken on RHEL6


https://sourceware.org/bugzilla/show_bug.cgi?id=15982

--- Comment #1 from David Smith <dsmith at redhat dot com> ---
There are a couple of possible solutions to this problem that I've been working
with:

1) Let the process.end probe fire even when the the module's session state
isn't STAP_SESSION_RUNNING. This works a good bit of the time, but not 100%
consistently.

2) Switch the task_finder from using UTRACE_DEATH (Thread has died) to
UTRACE_EXIT (Thread exit in progress). The UTRACE_EXIT event happens before the
signal is sent to the dying thread's parent, so we won't miss the event.

In the tracepoint-based utrace replacement (for kernels without built-in
utrace), the 'sched_process_exit' tracepoint (which we use for process.end
probes) happens in a similar place as the UTRACE_EXIT hook, so this should work
reasonably well.

-- 
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]