summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.exelib/uprobes_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.exelib/uprobes_lib.c')
-rw-r--r--testsuite/systemtap.exelib/uprobes_lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/systemtap.exelib/uprobes_lib.c b/testsuite/systemtap.exelib/uprobes_lib.c
index 072a1d61..e3416d17 100644
--- a/testsuite/systemtap.exelib/uprobes_lib.c
+++ b/testsuite/systemtap.exelib/uprobes_lib.c
@@ -7,6 +7,8 @@
* later version.
*/
+#include "sdt.h" /* Really <sys/sdt.h>, but pick current source version. */
+
// volatile static variable to prevent folding of lib_func
static volatile int foo;
@@ -17,6 +19,7 @@ __attribute__((noinline))
lib_func (int bar)
{
asm ("");
+ STAP_PROBE1(test, func_count, bar);
if (bar - foo > 0)
foo = lib_func (bar - foo);
return foo;