diff options
author | Dave Brolley <brolley@redhat.com> | 2009-06-23 11:07:15 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-06-23 11:07:15 -0400 |
commit | f75b6811dee35832309e55a9e3455c40d4c13437 (patch) | |
tree | a4b0c9bab84c84c863b99bb993fcbb7f5c19b339 /testsuite/systemtap.base/target_set.stp | |
parent | d6454850dd3c9d74b700924b56378c4c9ab9fa57 (diff) | |
parent | e89118955d1e9f6f442e9c0f2e918ce9bf9a8529 (diff) | |
download | systemtap-steved-f75b6811dee35832309e55a9e3455c40d4c13437.tar.gz systemtap-steved-f75b6811dee35832309e55a9e3455c40d4c13437.tar.xz systemtap-steved-f75b6811dee35832309e55a9e3455c40d4c13437.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.base/target_set.stp')
-rw-r--r-- | testsuite/systemtap.base/target_set.stp | 16 |
1 files changed, 16 insertions, 0 deletions
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() +} |