From dfd11cc3ea340096a2829f5ecda29998c73a0acb Mon Sep 17 00:00:00 2001 From: hiramatu Date: Wed, 5 Dec 2007 20:02:01 +0000 Subject: 2007-12-05 Masami Hiramatsu PR 4935 * tapsets.cxx (dwarf_derived_probe::dwarf_derived_probe): Allow user to access kernel variables in the condition of probe points. * stapprobes.5.in : Document the conditional probe point. * NEWS : Ditto. * parseok/five.stp: Add an example of conditional probe point. * parseko/probepoint04.stp: New test for conditional probe point. * parseko/probepoint05.stp: Ditto. * parseko/probepoint06.stp: Ditto. * parseko/probepoint07.stp: Ditto. * parseko/probepoint08.stp: Ditto. * parseko/probepoint09.stp: Ditto. * semok/twentynine.stp: Ditto. * semko/thirtynine.stp: Ditto. * systemtap.base/onoffprobe.*: Ditto. --- testsuite/parseko/probepoint04.stp | 4 ++++ testsuite/parseko/probepoint05.stp | 4 ++++ testsuite/parseko/probepoint06.stp | 4 ++++ testsuite/parseko/probepoint07.stp | 4 ++++ testsuite/parseko/probepoint08.stp | 4 ++++ testsuite/parseko/probepoint09.stp | 4 ++++ 6 files changed, 24 insertions(+) create mode 100644 testsuite/parseko/probepoint04.stp create mode 100644 testsuite/parseko/probepoint05.stp create mode 100644 testsuite/parseko/probepoint06.stp create mode 100644 testsuite/parseko/probepoint07.stp create mode 100644 testsuite/parseko/probepoint08.stp create mode 100644 testsuite/parseko/probepoint09.stp (limited to 'testsuite/parseko') diff --git a/testsuite/parseko/probepoint04.stp b/testsuite/parseko/probepoint04.stp new file mode 100644 index 00000000..754c9e63 --- /dev/null +++ b/testsuite/parseko/probepoint04.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# bad probe point +probe foo(5) if (1)? diff --git a/testsuite/parseko/probepoint05.stp b/testsuite/parseko/probepoint05.stp new file mode 100644 index 00000000..11464ae2 --- /dev/null +++ b/testsuite/parseko/probepoint05.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# bad probe point +probe foo(5) if (1)(10) diff --git a/testsuite/parseko/probepoint06.stp b/testsuite/parseko/probepoint06.stp new file mode 100644 index 00000000..ebe23514 --- /dev/null +++ b/testsuite/parseko/probepoint06.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# bad probe point +probe if (1) foo(5) diff --git a/testsuite/parseko/probepoint07.stp b/testsuite/parseko/probepoint07.stp new file mode 100644 index 00000000..1f240a02 --- /dev/null +++ b/testsuite/parseko/probepoint07.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# bad probe point +probe foo(5) if (1( diff --git a/testsuite/parseko/probepoint08.stp b/testsuite/parseko/probepoint08.stp new file mode 100644 index 00000000..a0ec712f --- /dev/null +++ b/testsuite/parseko/probepoint08.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# bad probe point +probe foo(5) if diff --git a/testsuite/parseko/probepoint09.stp b/testsuite/parseko/probepoint09.stp new file mode 100644 index 00000000..a7bf15d8 --- /dev/null +++ b/testsuite/parseko/probepoint09.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# bad probe point +probe foo(5) if(1) bar(2) -- cgit