From 854e786e804c6dac927465ebcaac7fca724256cb Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Sat, 20 Jun 2009 15:08:18 +0200 Subject: Add test for target_set tapset. Signed-off-by: Josh Stone --- testsuite/systemtap.base/target_set.stp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 testsuite/systemtap.base/target_set.stp (limited to 'testsuite/systemtap.base/target_set.stp') diff --git a/testsuite/systemtap.base/target_set.stp b/testsuite/systemtap.base/target_set.stp new file mode 100644 index 00000000..002ba897 --- /dev/null +++ b/testsuite/systemtap.base/target_set.stp @@ -0,0 +1,16 @@ +probe begin +{ + stp_pid = stp_pid() + printf("%d\n%d begat %d\n", stp_pid, stp_pid, target()) +} + +probe syscall.nanosleep, syscall.compat_nanosleep ? +{ + if (target_set_pid(pid()) && $rqtp->tv_sec == $1) + target_set_report() +} + +probe end +{ + target_set_report() +} -- cgit