As pointed out by dsmith and jistone in PR11525, this cleans up the test.
* testsuite/systemtap.base/pr10854.stp: Use pid() == stp_pid()) next
to skip tracing our own helper process.
global trace
probe kernel.function(@1).call {
- if (execname() == "staprun") next # skip our own helper process
+ if (pid() == stp_pid()) next # skip our own helper process
trace[tid()] = 1
trace(1)
}
probe kernel.function(@1).return {
+ if (pid() == stp_pid()) next # skip our own helper process
trace(-1)
delete trace[tid()]
}