summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/pointer_array.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/pointer_array.stp')
-rw-r--r--testsuite/systemtap.base/pointer_array.stp16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/pointer_array.stp b/testsuite/systemtap.base/pointer_array.stp
new file mode 100644
index 00000000..1d15ebf4
--- /dev/null
+++ b/testsuite/systemtap.base/pointer_array.stp
@@ -0,0 +1,16 @@
+probe syscall.execve
+{
+ if (pid() == target()) {
+ println(user_string($argv[0]))
+ printf("%c\n", $argv[0][0])
+ printf("%c\n", $argv[0][1])
+ printf("%c\n", $argv[0][2])
+ printf("%c\n", $argv[0][3])
+ printf("%c\n", $argv[0][4])
+ printf("%c\n", $argv[0][5])
+ printf("%c\n", $argv[0][6])
+ printf("%c\n", $argv[0][7])
+ printf("%c\n", $argv[0][8])
+ println($argv[0][9])
+ }
+}