sudo apt-get install systemtap linux-image-`uname -r`-dbg linux-headers-`uname -r`
Additionally, the systemtap-doc
package contains manpages for the probes, which is really nice, so you might want to install that as well.
Listing syscalls:
For example, all open
syscalls:
stap -e 'probe syscall.open { printf("%s(%d)\n", execname(), pid()) }'
Or replace open
with *
and see everything.
For example:
stap -e 'probe syscall.* { if (execname() != "stapio") printf("%s(%d) -> %s\n", execname(), pid(), probefunc()) }'