summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.exelib/uprobes_exe.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-06-15 17:16:14 +0200
committerMark Wielaard <mjw@redhat.com>2009-06-15 17:20:06 +0200
commitcba30aa93a8836cd9f88b494c17bc991c997d5f2 (patch)
treec46c444c486c16fa79b968e851a1705c7b3a6162 /testsuite/systemtap.exelib/uprobes_exe.c
parent5e3d7f3a3aa8d11b67e74de0c3d9187c323cbff2 (diff)
downloadsystemtap-steved-cba30aa93a8836cd9f88b494c17bc991c997d5f2.tar.gz
systemtap-steved-cba30aa93a8836cd9f88b494c17bc991c997d5f2.tar.xz
systemtap-steved-cba30aa93a8836cd9f88b494c17bc991c997d5f2.zip
Add (disabled) testcase for stap probe marks to exelib.
* testsuite/systemtap.exelib/exelib.exp: Compile against sdt.h. * testsuite/systemtap.exelib/uprobes_exe.c: Add main_count probe mark. * testsuite/systemtap.exelib/uprobes_lib.c: Add func_count probe mark. * testsuite/systemtap.exelib/mark.tcl: New test. * testsuite/systemtap.exelib/mark.stp: New test tapset.
Diffstat (limited to 'testsuite/systemtap.exelib/uprobes_exe.c')
-rw-r--r--testsuite/systemtap.exelib/uprobes_exe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/systemtap.exelib/uprobes_exe.c b/testsuite/systemtap.exelib/uprobes_exe.c
index d2905637..da65efa7 100644
--- a/testsuite/systemtap.exelib/uprobes_exe.c
+++ b/testsuite/systemtap.exelib/uprobes_exe.c
@@ -7,7 +7,7 @@
* later version.
*/
-#include <unistd.h>
+#include "sdt.h" /* Really <sys/sdt.h>, but pick current source version. */
// function from our library
int lib_main (void);
@@ -22,6 +22,7 @@ __attribute__((noinline))
main_func (int foo)
{
asm ("");
+ STAP_PROBE1(test, main_count, foo);
if (foo - bar > 0)
bar = main_func (foo - bar);
else