summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2010-03-04 22:13:03 +0100
committerMark Wielaard <mjw@redhat.com>2010-03-04 22:13:03 +0100
commitaa0be91ff9cdd708d2b501fb0dbf4cd070408b9e (patch)
tree153985019724c4445366d407faf46f656b2e3eaf /testsuite
parent6cfefaad912d6042f87745b43aa61d908d7e9136 (diff)
downloadsystemtap-steved-aa0be91ff9cdd708d2b501fb0dbf4cd070408b9e.tar.gz
systemtap-steved-aa0be91ff9cdd708d2b501fb0dbf4cd070408b9e.tar.xz
systemtap-steved-aa0be91ff9cdd708d2b501fb0dbf4cd070408b9e.zip
Add cmdline argument fetching for current process to context.stp tapset.
* tapset/context.stp: Add cmdline_str, cmdline_arg and cmdline_args. * testsuite/buildok/context_test.stp: Add tests for new functions.
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/buildok/context_test.stp4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/buildok/context_test.stp b/testsuite/buildok/context_test.stp
index 149159fb..da8206da 100755
--- a/testsuite/buildok/context_test.stp
+++ b/testsuite/buildok/context_test.stp
@@ -30,4 +30,8 @@ probe begin {
log(modname(0))
log(probefunc())
log(probemod())
+
+ log(cmdline_args(1, 1, "bar"))
+ log(cmdline_arg(0))
+ log(cmdline_str())
}