Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.bpf/bpf_tests/user_string.stp

raw
1 // note: requires coreutils-debuginfo
2
3 probe begin {
4 printf("BEGIN\n")
5 }
6
7 probe process("/usr/bin/sleep").function("main") {
8 arg = user_string($argv[0])
9 printf("found %s\n", arg)
10 exit()
11 }
12
13 probe end {
14 printf("END PASS\n")
15 }