summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.context/args.stp
diff options
context:
space:
mode:
authorhunt <hunt>2007-07-02 07:22:21 +0000
committerhunt <hunt>2007-07-02 07:22:21 +0000
commit81bceb41bf645dbef2ec8fe1522ad1b68a02d17d (patch)
tree9956ad4f6bc5122387a040adb442032cb752aecd /testsuite/systemtap.context/args.stp
parenta147cc55c352fecdfe6835af8100403594b79dad (diff)
downloadsystemtap-steved-81bceb41bf645dbef2ec8fe1522ad1b68a02d17d.tar.gz
systemtap-steved-81bceb41bf645dbef2ec8fe1522ad1b68a02d17d.tar.xz
systemtap-steved-81bceb41bf645dbef2ec8fe1522ad1b68a02d17d.zip
2007-07-02 Martin Hunt <hunt@redhat.com>
* systemtap.context/*: New context tests.
Diffstat (limited to 'testsuite/systemtap.context/args.stp')
-rw-r--r--testsuite/systemtap.context/args.stp39
1 files changed, 39 insertions, 0 deletions
diff --git a/testsuite/systemtap.context/args.stp b/testsuite/systemtap.context/args.stp
new file mode 100644
index 00000000..5d5208a2
--- /dev/null
+++ b/testsuite/systemtap.context/args.stp
@@ -0,0 +1,39 @@
+probe module("systemtap_test_module2").function("yyy_int") {
+ printf("yyy_int %d %d %d\n", $a, $b, $c)
+}
+probe module("systemtap_test_module2").function("yyy_int").return {
+ printf("yyy_int returns %d\n", $return)
+}
+probe module("systemtap_test_module2").function("yyy_uint") {
+ printf("yyy_uint %d %d %d\n", $a, $b, $c)
+}
+probe module("systemtap_test_module2").function("yyy_uint").return {
+ printf("yyy_uint returns %d\n", $return)
+}
+probe module("systemtap_test_module2").function("yyy_long") {
+ printf("yyy_long %d %d %d\n", $a, $b, $c)
+}
+probe module("systemtap_test_module2").function("yyy_long").return {
+ printf("yyy_long returns %d\n", $return)
+}
+probe module("systemtap_test_module2").function("yyy_int64") {
+ printf("yyy_int64 %d %d %d\n", $a, $b, $c)
+}
+probe module("systemtap_test_module2").function("yyy_int64").return {
+ printf("yyy_int64 returns %d\n", $return)
+}
+probe module("systemtap_test_module2").function("yyy_char") {
+ printf("yyy_char %d %d %d\n", $a, $b, $c)
+}
+probe module("systemtap_test_module2").function("yyy_char").return {
+ printf("yyy_char returns %d\n", $return)
+}
+probe module("systemtap_test_module2").function("yyy_str") {
+ printf("yyy_str %s-%s-%s\n", kernel_string($a), kernel_string($b), kernel_string($c))
+}
+probe module("systemtap_test_module2").function("yyy_str").return {
+ printf("yyy_str returns %s\n", kernel_string($return))
+}
+probe begin {
+ printf("READY\n")
+}