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.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/systemtap.exelib/uprobes_lib.c b/testsuite/systemtap.exelib/uprobes_lib.c
new file mode 100644
index 00000000..25297b6b
--- /dev/null
+++ b/testsuite/systemtap.exelib/uprobes_lib.c
@@ -0,0 +1,21 @@
+/* uprobes_lib test case - library helper
+ * Copyright (C) 2009, Red Hat Inc.
+ *
+ * This file is part of systemtap, and is free software. You can
+ * redistribute it and/or modify it under the terms of the GNU General
+ * Public License (GPL); either version 2, or (at your option) any
+ * later version.
+ */
+
+void
+lib_func (int bar)
+{
+ if (bar > 1)
+ lib_func (bar - 1);
+}
+
+void
+lib_main ()
+{
+ lib_func (3);
+}