Skip to content

Instantly share code, notes, and snippets.

@djellemah
Last active July 26, 2016 12:22
Show Gist options
  • Save djellemah/3d8bf7670e4dd5f8cb8641cf7ec13bfe to your computer and use it in GitHub Desktop.
Save djellemah/3d8bf7670e4dd5f8cb8641cf7ec13bfe to your computer and use it in GitHub Desktop.
$ ./stap -p2 --vp 04 -e 'probe process("/bin/ls").function("main") { }'
Extracting build ID.
blacklist regexps:
blfn: ^(.^)$
blfn_ret: ^(_start)$
blfile: ^(.^)$
blsection: ^(.^)
dwarf_builder::build for /bin/ls
parse 'main', func 'main'
pattern '/bin/ls' matches module '/bin/ls'
focused on module '/bin/ls' = [0x8048000-0x8065074, bias 0 file /bin/ls ELF machine i?86|x86_64 (code 3)
focused on module '/bin/ls'
suggesting 111 dwarf functions from modules:
/bin/ls
semantic error: while resolving probe point: identifier 'process' at <input>:1:7
thrown from: elaborate.cxx:1080
source: probe process("/bin/ls").function("main") { }
^
semantic error: no match (similar functions: _fini, exit, raise, textdomain, _exit)
thrown from: tapsets.cxx:8347
deleting module_cache
Pass 2: analyzed script: 0 probes, 0 functions, 0 embeds, 0 globals using 30936virt/24792res/6748shr/18424data kb, in 0usr/0sys/6real ms.
Pass 2: analysis failed. [man error::pass2]
Running rm -rf /tmp/stapbT1btH
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stapbT1btH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment