- SystemTap
- Getting Started with SystemTap: A introduction with simple examples. It is simple and thus good for beginners.
Last active
August 9, 2017 02:13
-
-
Save JeOam/83397174f2f1575f06f1 to your computer and use it in GitHub Desktop.
SystemTap Tips
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install SystemTap in Ubuntu 14.04:
sudo apt-get install systemtap sudo apt-get install gcc sudo apt-get install linux-headers-$(uname -r)
Test the installation with the HelloWorld example:
sudo stap -e 'probe begin { printf("Hello, World!\n"); exit() }'
You should see Hello, World! is emitted in the console.
Install debug symbols file:
Save the following codes as
run.sh
, and run:sh run.sh
Test the installation with this example which will print hello world to the console when the system call
sys_call
is called.:Refs: Install SystemTap in Ubuntu 14.04