diff options
author | Stan Cox <scox@redhat.com> | 2008-11-17 11:34:50 -0500 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2008-11-17 11:34:50 -0500 |
commit | f28a8c28ce2ceed97bc4f4a19ffe8880bceb0682 (patch) | |
tree | e3c2b9bd0a8e10d6145f1e31f09242cb3735ca8c /testsuite/systemtap.base/static_uprobes.stp | |
parent | a6ce170764b0ec75d3ddbca20823b2a951a225d2 (diff) | |
download | systemtap-steved-f28a8c28ce2ceed97bc4f4a19ffe8880bceb0682.tar.gz systemtap-steved-f28a8c28ce2ceed97bc4f4a19ffe8880bceb0682.tar.xz systemtap-steved-f28a8c28ce2ceed97bc4f4a19ffe8880bceb0682.zip |
Add static uprobe support (static library variant)
Diffstat (limited to 'testsuite/systemtap.base/static_uprobes.stp')
-rw-r--r-- | testsuite/systemtap.base/static_uprobes.stp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/static_uprobes.stp b/testsuite/systemtap.base/static_uprobes.stp new file mode 100644 index 00000000..25e64a37 --- /dev/null +++ b/testsuite/systemtap.base/static_uprobes.stp @@ -0,0 +1,17 @@ +probe process("tstlabel.x").mark("label1") +{ + probe_str=user_string($probe) + printf("In %s probe\n", probe_str) +} + +probe process("tstlabel.x").mark("label2") +{ + probe_str=user_string($probe) + printf("In %s probe %#x\n", probe_str, $arg1) +} + +probe process("tstlabel.x").mark("label3") +{ + probe_str=user_string($probe) + printf("In %s probe %#x %#x\n", probe_str, $arg1, $arg2) +} |