From f28a8c28ce2ceed97bc4f4a19ffe8880bceb0682 Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Mon, 17 Nov 2008 11:34:50 -0500 Subject: Add static uprobe support (static library variant) --- testsuite/systemtap.base/static_uprobes.stp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 testsuite/systemtap.base/static_uprobes.stp (limited to 'testsuite/systemtap.base/static_uprobes.stp') 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) +} -- cgit