From 91036867d38153408de7b41c6d12d59f470f6bcd Mon Sep 17 00:00:00 2001 From: Prerna Saxena Date: Fri, 29 Jan 2010 12:02:26 +0530 Subject: Hardware Breakpoints for x86 / x86_64, based on mainline kernel --- testsuite/buildok/hwbkpt.stp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 testsuite/buildok/hwbkpt.stp (limited to 'testsuite/buildok/hwbkpt.stp') diff --git a/testsuite/buildok/hwbkpt.stp b/testsuite/buildok/hwbkpt.stp new file mode 100644 index 00000000..03fbf510 --- /dev/null +++ b/testsuite/buildok/hwbkpt.stp @@ -0,0 +1,4 @@ +#! stap -wp4 + +probe kernel.data("pid_max").write {} +probe kernel.data("pid_max").rw {} -- cgit 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 (limited to '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 From cc57beca8d9d168ef42edb1f8b43f594105dfdf2 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 2 Feb 2010 14:17:44 +0100 Subject: buildok test doesn't need /usr/bin/env * testsuite/buildok/hwbkpt.stp: Just use stap directly after #!. --- testsuite/buildok/hwbkpt.stp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite/buildok/hwbkpt.stp') diff --git a/testsuite/buildok/hwbkpt.stp b/testsuite/buildok/hwbkpt.stp index 35a17bd8..ac1a6f9c 100755 --- a/testsuite/buildok/hwbkpt.stp +++ b/testsuite/buildok/hwbkpt.stp @@ -1,4 +1,4 @@ -#! /usr/bin/env stap -wp4 +#! stap -wp4 probe %(CONFIG_PERF_EVENTS=="y" && CONFIG_HAVE_HW_BREAKPOINT=="y" %? -- cgit