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.”的错误。
11951 1
Centos7:“Entering emergency mode. Exit the shell to continue”错误解决方法
|
负载均衡 Cloud Native Linux
Linux Command Perf 性能剖析
Linux Command Perf 性能剖析
Linux Command Perf 性能剖析
x86_64-linux-gnu/libgdk-x11-2.0.so: error adding symbols: DSO missing from command line
x86_64-linux-gnu/libgdk-x11-2.0.so: error adding symbols: DSO missing from command line
239 0
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
249 0
|
Linux C语言 C++
linux GCC编译错误:CPU you selected does not support x86-64 instruction set
Linux GCC编译时如遇到如下错误: cpp:1: error: CPU you selected does not support x86-64 instruction set 是因为在64位平台上加了-march=pentium4这样一个编译参数,它只用于32位平台。
1916 0
|
传感器 算法 Linux
Perf Subsystem —— 基于PMI实现的NMI Watchdog
## 背景 任务能否被及时响应,对内核来说,至关重用。Linux kernel实现了softlockup和hardlockup,用于检测系统是否出现了长时间无响应。 > A ‘softlockup’ is defined as a bug that causes the kernel to loop in kernel mode for more than 20 seconds, with
2130 1
|
C++ Windows
编译WINDOWS版SDL2:You should run hg revert SDL_config.h
编译WINDOWS版SDL2:You should run hg revert SDL_config.h
1041 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#
1520 0