Last active
December 10, 2019 02:02
-
-
Save fdoliv/1a7600c20b650d5cb8be25d8b6d63eec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Como instalar o systemtap no debian | |
Os passos desta instalação foram realizados no Debian 9, mas segundo a documentação oficial: | |
systemtap for Debian | |
==================== | |
Systemtap works with official Debian kernel packages since the Squeeze | |
release (with the exception of user space probes that are not | |
supported yet, see Debian bug #691167). To use systemtap you need to | |
manually install the linux-image-*-dbg and linux-header-* packages | |
that match your running kernel. To simplify this task you can use the | |
stap-prep command. Please always run this before reporting a bug. | |
Passos da instalação | |
apt install systemtap | |
apt install linux-headers-$(uname -r) && linux-image-$(uname -r)-dbg | |
Hello, World! | |
stap -e 'probe begin { printf("Hello, World!\n"); exit() }' | |
Se o usuário não root for utilizar o systemtap, é necessário o adicionar nos grupos stapusr, stapdev, stapsys | |
usermod -a -G grupo usuario | |
Após a reinicialização, será possível utilizar com o usuário. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment