]> sourceware.org Git - systemtap.git/commitdiff
Skip stapio tracing in pr10854.stp.
authorMark Wielaard <mjw@redhat.com>
Thu, 22 Apr 2010 13:07:49 +0000 (15:07 +0200)
committerMark Wielaard <mjw@redhat.com>
Thu, 22 Apr 2010 13:07:49 +0000 (15:07 +0200)
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.

testsuite/systemtap.base/pr10854.stp

index 55f027f27ba884d0ea682b814d8d76b6fb29b478..2bc0100c66cda3362060b357306b78f4ea63156a 100644 (file)
@@ -7,11 +7,12 @@ function trace(entry_p) {
 
 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()]
 }
This page took 0.031299 seconds and 5 git commands to generate.