summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2010-02-01 15:18:25 +0800
committerWenji Huang <wenji.huang@oracle.com>2010-02-01 15:18:25 +0800
commit5bfa509fafd80169ced1ea42a110a5a0c30127f3 (patch)
tree34c07a463532935942ba20e75970c775569ee1f7 /testsuite/buildok
parent0daf3783cb8baaa114c02acbb9e6a241fcc39ed8 (diff)
downloadsystemtap-steved-5bfa509fafd80169ced1ea42a110a5a0c30127f3.tar.gz
systemtap-steved-5bfa509fafd80169ced1ea42a110a5a0c30127f3.tar.xz
systemtap-steved-5bfa509fafd80169ced1ea42a110a5a0c30127f3.zip
Make hwbkpt.stp compitable with old kernel and exectuable
* testsuite/buildok/hwbkpt.stp: Switch by CONFIG_* and be executable.
Diffstat (limited to 'testsuite/buildok')
-rwxr-xr-x[-rw-r--r--]testsuite/buildok/hwbkpt.stp16
1 files changed, 13 insertions, 3 deletions
diff --git a/testsuite/buildok/hwbkpt.stp b/testsuite/buildok/hwbkpt.stp
index 03fbf510..35a17bd8 100644..100755
--- a/testsuite/buildok/hwbkpt.stp
+++ b/testsuite/buildok/hwbkpt.stp
@@ -1,4 +1,14 @@
-#! stap -wp4
+#! /usr/bin/env stap -wp4
-probe kernel.data("pid_max").write {}
-probe kernel.data("pid_max").rw {}
+probe
+%(CONFIG_PERF_EVENTS=="y" && CONFIG_HAVE_HW_BREAKPOINT=="y" %?
+ kernel.data("pid_max").write
+%:
+ never
+%) {}
+probe
+%(CONFIG_PERF_EVENTS=="y" && CONFIG_HAVE_HW_BREAKPOINT=="y" %?
+ kernel.data("pid_max").rw
+%:
+ never
+%) {}