From 1aa71d93e247f68ef9222b01f386e1d21dd23b81 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 22 Apr 2010 15:07:49 +0200 Subject: [PATCH] Skip stapio tracing in pr10854.stp. 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuite/systemtap.base/pr10854.stp b/testsuite/systemtap.base/pr10854.stp index 55f027f27..2bc0100c6 100644 --- a/testsuite/systemtap.base/pr10854.stp +++ b/testsuite/systemtap.base/pr10854.stp @@ -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()] } -- 2.43.5