summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorgraydon <graydon>2005-07-13 04:47:54 +0000
committergraydon <graydon>2005-07-13 04:47:54 +0000
commitf8220a7b945a3be7975fb2610ca1c79119594534 (patch)
treed733adba9033184c8250971ce096e51b3dade156 /testsuite
parent6f0257ecf703373555ef06044cc25c8083859616 (diff)
downloadsystemtap-steved-f8220a7b945a3be7975fb2610ca1c79119594534.tar.gz
systemtap-steved-f8220a7b945a3be7975fb2610ca1c79119594534.tar.xz
systemtap-steved-f8220a7b945a3be7975fb2610ca1c79119594534.zip
2005-07-12 Graydon Hoare <graydon@redhat.com>
* elaborate.cxx (semantic_pass_symbols): Only enter body if non-null. (semantic_pass_types): Likewise. (semantic_pass): Pass session to register_standard_tapsets. * translate.cxx (builtin_collector): New struct. (hookup_builtins): New function. (translate_pass): Only translate functions with bodies. (c_unparser::emit_common_header): Likewise, and call hookup_builtins. * tapsets.hh (builtin_function): New class. (register_standard_tapsets): Change parameter to session. * tapsets.cc (bultin_function::*): Implement class. (register_standard_tapsets): Register printk, log, warn. * testsuite/transok/six.stp: New test.
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/transok/six.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/transok/six.stp b/testsuite/transok/six.stp
new file mode 100755
index 00000000..8684107e
--- /dev/null
+++ b/testsuite/transok/six.stp
@@ -0,0 +1,8 @@
+#! stap -p3
+
+probe begin
+{
+ printk("kernel time")
+ log("hello there")
+ warn("this is a builtin")
+}