summaryrefslogtreecommitdiffstats
path: root/testsuite/parseok/five.stp
diff options
context:
space:
mode:
authorfche <fche>2005-03-15 22:38:27 +0000
committerfche <fche>2005-03-15 22:38:27 +0000
commit9c0c0e4652824a0bf8f4da2175278b129fac6809 (patch)
treec560854f3933fa4cfcf397c9fd040da913bd98bb /testsuite/parseok/five.stp
parent204b456c7c08bc40ffe1f21575461d92a544e92b (diff)
downloadsystemtap-steved-9c0c0e4652824a0bf8f4da2175278b129fac6809.tar.gz
systemtap-steved-9c0c0e4652824a0bf8f4da2175278b129fac6809.tar.xz
systemtap-steved-9c0c0e4652824a0bf8f4da2175278b129fac6809.zip
2005-03-15 Frank Ch. Eigler <fche@redhat.com>
* TODO: New file. Include some probe-point-provider syntax examples. * parse.cxx (lexer::scan, parser::parse_literal): Support hex, octal numbers via strtol. (parse_probe, parse_probe_point): Modify for dotted syntax. * staptree.cxx: Ditto. * parsetest.cxx, semtest.cxx: Print parse/sem results even if .stp files were given on command line. * parse.h, staptree.h: Rename probe_point_spec -> probe_point. * runtest.sh: New test-runner front-end script. * Makefile.am: Use it for TESTS_ENVIRONMENT. * testsuite/*: Update probe point syntax. Add a bunch of new tests.
Diffstat (limited to 'testsuite/parseok/five.stp')
-rwxr-xr-xtestsuite/parseok/five.stp19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/parseok/five.stp b/testsuite/parseok/five.stp
new file mode 100755
index 00000000..a475807e
--- /dev/null
+++ b/testsuite/parseok/five.stp
@@ -0,0 +1,19 @@
+#! parsetest
+
+probe lkst("process_contextswitch") {}
+probe syscall("name").return {}
+probe syscall("*") {}
+probe kernel.function("wait_for_godot") {}
+probe kernel.function("name").line(10) {}
+probe kernel.source("mempool.c").line(5004) {}
+probe kernel.address(0xdeadbeef) {}
+probe kernel.module("driver.ko").function("name").return {}
+probe kernel.module("cpqarray.ko").jumptable("ida_fops") {}
+probe kernel.watch("datasymbol").write {}
+probe user("fche").inode("/bin/vi").function("refresh") {}
+probe user.inode("/lib/libc.so.6").function("malloc").return {}
+probe time.real.hz(500) {}
+probe time.virtual.jiffies(100) {}
+probe perfcounter("tlbmiss").count(4000) {}
+probe resource.freemembelow(50) {} # pages?
+probe begin {}