summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/buildok/six.stp2
-rwxr-xr-xtestsuite/semko/twentyone.stp8
-rwxr-xr-xtestsuite/semko/twentytwo.stp8
3 files changed, 17 insertions, 1 deletions
diff --git a/testsuite/buildok/six.stp b/testsuite/buildok/six.stp
index a11014fe..589a8b44 100755
--- a/testsuite/buildok/six.stp
+++ b/testsuite/buildok/six.stp
@@ -4,6 +4,6 @@
# listed in PR 1155 we cannot resolve the parameters of the inline
# at the moment.
-probe kernel.function("context_switch") {
+probe kernel.inline("context_switch") {
log ("found an inline function")
}
diff --git a/testsuite/semko/twentyone.stp b/testsuite/semko/twentyone.stp
new file mode 100755
index 00000000..9137a88b
--- /dev/null
+++ b/testsuite/semko/twentyone.stp
@@ -0,0 +1,8 @@
+#! stap -p4
+
+# tests that an inline function is *not* matched using
+# the function() pattern
+
+probe kernel.function("context_switch") {
+ log ("found an inline via function()")
+}
diff --git a/testsuite/semko/twentytwo.stp b/testsuite/semko/twentytwo.stp
new file mode 100755
index 00000000..cb67c896
--- /dev/null
+++ b/testsuite/semko/twentytwo.stp
@@ -0,0 +1,8 @@
+#! stap -p4
+
+# tests that a non-inline function is *not* matched using
+# the inline() pattern
+
+probe kernel.inline("sys_recv") {
+ log ("found a non-inline via inline()")
+}