summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-05-22 19:55:50 -0700
committerJosh Stone <jistone@redhat.com>2009-05-22 19:55:50 -0700
commitc9116e9980ad6e417697737f8d54a4a625811245 (patch)
treefc136ff1a6ba9673c3dbef395cba81791d2c00e8 /testsuite/buildok
parentb350f56b13f4e5acd5744cd71e4b26343aae8e6b (diff)
downloadsystemtap-steved-c9116e9980ad6e417697737f8d54a4a625811245.tar.gz
systemtap-steved-c9116e9980ad6e417697737f8d54a4a625811245.tar.xz
systemtap-steved-c9116e9980ad6e417697737f8d54a4a625811245.zip
Fix another kernel/kprobe.function conflict
Both kernel.function and kprobe.function were defining a global array stap_unreg_kprobes to use in bulk kprobes unregistration. The compiler allowed the duplicate definition as long as they were the same size, as it was when exercised in buildok/thirtyone. kprobe.function now uses a separate stap_unreg_kprobes2, and the testcase is modified to produce an imbalanced number of probes.
Diffstat (limited to 'testsuite/buildok')
-rwxr-xr-xtestsuite/buildok/thirtyone.stp1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/buildok/thirtyone.stp b/testsuite/buildok/thirtyone.stp
index 8a97d84f..5f2f2da6 100755
--- a/testsuite/buildok/thirtyone.stp
+++ b/testsuite/buildok/thirtyone.stp
@@ -1,4 +1,5 @@
#! stap -p4
+probe kprobe.function("sys_stat") {}
probe kprobe.function("sys_open") {}
probe kernel.function("sys_close") {}