diff options
author | Mark Wielaard <mjw@redhat.com> | 2010-03-04 22:13:03 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2010-03-04 22:13:03 +0100 |
commit | aa0be91ff9cdd708d2b501fb0dbf4cd070408b9e (patch) | |
tree | 153985019724c4445366d407faf46f656b2e3eaf /testsuite/buildok/context_test.stp | |
parent | 6cfefaad912d6042f87745b43aa61d908d7e9136 (diff) | |
download | systemtap-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/buildok/context_test.stp')
-rwxr-xr-x | testsuite/buildok/context_test.stp | 4 |
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()) } |