From 5bfa509fafd80169ced1ea42a110a5a0c30127f3 Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Mon, 1 Feb 2010 15:18:25 +0800 Subject: Make hwbkpt.stp compitable with old kernel and exectuable * testsuite/buildok/hwbkpt.stp: Switch by CONFIG_* and be executable. --- testsuite/buildok/hwbkpt.stp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) mode change 100644 => 100755 testsuite/buildok/hwbkpt.stp diff --git a/testsuite/buildok/hwbkpt.stp b/testsuite/buildok/hwbkpt.stp old mode 100644 new mode 100755 index 03fbf510..35a17bd8 --- 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 +%) {} -- cgit