systemtap-mode

简介: mode

gentoo 上安装 systemtap

emerge -avt dev-util/systemtap

emerge的输出会提示你需要重新编译kernel打开相应的内核支持,如debuginfo, kprobe。

可惜的是跑不了,systemtap-2.4在linux-3.18上有个bug。

解决的方法是手工编译最新的systemtap,很简单:

git clone git://sourceware.org/git/systemtap.git
./configure --prefix=~/tools
make -j8 && make install

安装systemtap-mode

git clone https://github.com/ruediger/systemtap-mode.git 把systemtap-mode.el 放到emacs的加载路径下面
(require 'systemtap-mode)

开始愉快的编写systemtap了

注意,如果要在emacs中执行脚本,emacs需要有root权限。

systemtap-execute-script

image.png

相关文章
|
Shell Linux
Centos7:“Entering emergency mode. Exit the shell to continue”错误解决方法
想过很多朋友有遇到这种情况,就是正在远程使用centos7系统时,一旦让远程虚拟机或服务器断电或强制关机,那么再次重启时就会出现“Entering emergency mode. Exit the shell to continue.”的错误。
11823 1
Centos7:“Entering emergency mode. Exit the shell to continue”错误解决方法
|
6月前
|
Oracle 关系型数据库 Linux
Disable NUMA on database servers to improve performance of Linux file system utilities
Disable NUMA on database servers to improve performance of Linux file system utilities
45 3
|
XML 存储 监控
Linux - Sysstat [ All-in-One System Performance and Usage Activity Monitoring Tool For Linux]
Linux - Sysstat [ All-in-One System Performance and Usage Activity Monitoring Tool For Linux]
115 0
|
负载均衡 Cloud Native Linux
Linux Command Perf 性能剖析
Linux Command Perf 性能剖析
Linux Command Perf 性能剖析
|
Python
spyder中ipython报kernel deid ,Restart kernel解决办法
spyder中ipython报kernel deid ,Restart kernel解决办法
290 0
|
Linux 开发工具 数据安全/隐私保护
|
安全 Linux PHP
Linux中composer install执行报错Warning: putenv() has been disabled for security reasons in 解决问题
Linux中composer install执行报错Warning: putenv() has been disabled for security reasons in 解决问题
Linux中composer install执行报错Warning: putenv() has been disabled for security reasons in 解决问题
|
Ubuntu
ubuntu Emergency Mode
1 sudo fsck -y /dev/sda# 1 e2fsck -f -y -v -C 0 /dev/sda#
1511 0