因为最近开始学习Nginx,在网上看到别人介绍了一款强大的内核探测工具Systemtap,于是便准备学习下这款探测工具为以后代码分析做准备。 第一步便是安装。在自己电脑上安装的时候,也是费了一番劲儿。因此,为防止以后需要重新安装,也希望可以帮助后来学习的人,在这里准备写一篇博客做一个记录。 以下便是
分类:
系统相关 时间:
2016-02-27 00:55:29
阅读次数:
306
http://blog.chinaunix.net/uid-24774106-id-3650136.htmlhttp://blog.itpub.net/15480802/viewspace-762746/http://blog.itpub.net/15480802/viewspace-1755100...
分类:
数据库 时间:
2015-11-15 14:51:28
阅读次数:
231
Linux下的IO统计工具如iostat, nmon等大多数是只能统计到per设备的读写情况, 如果你想知道每个进程是如何使用IO的就比较麻烦.如果会systemtap, 或者blktrace这些事情难不到大家, 但是没专用工具总不是很舒服的. 幸运的是Linux 2.6.20内核以后提供了基于每个...
分类:
系统相关 时间:
2015-09-29 06:36:40
阅读次数:
428
1. 在 LINUX 3.5源代码目录下执行 yum install ncurses-devel make menuconfig2 打开内核跟踪事件,用于SYSTEMTAP跟踪 kernel hacking --->tracers(new)--->enable uprobes-based dynam...
分类:
其他好文 时间:
2015-09-22 01:20:04
阅读次数:
433
安装步骤:1.下载装源代码:https://www.kernel.org/找到 https://www.kernel.org/pub/ 链接查找linux->kernel->v2.6->linux-2.6.32.tar.bz22.拖动虚拟机 放到目录 /usr/src/kernels/下解压 为 l...
分类:
其他好文 时间:
2015-09-21 19:29:37
阅读次数:
218
PostgreSQL 支持动态跟踪, 可以通过dtrace或者systemtap工具统计相关探针的信息.安装systemtapyum install systemtap kernel-debuginfo kernel-devel将安装以下包systemtap-devel-1.8-6.el5syste...
分类:
数据库 时间:
2015-09-17 15:05:12
阅读次数:
355
[root@localhost ~]# cat user.stpprobe process(@1).function(@2){print_ubacktrace();exit();}session 1 执行 stap user.stp "./a.out" "fun"session 2 执行 [root...
分类:
其他好文 时间:
2015-09-16 21:29:19
阅读次数:
256
If you are running a kernel that you built and installed "by hand", rather than by installing a package from a distribution, you can follow these step...
分类:
其他好文 时间:
2015-09-16 15:34:35
阅读次数:
140
1.[root@localhost ~]# stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'Pass 1: parsed user script and 85 library script(s) using 146900...
分类:
其他好文 时间:
2015-09-14 00:18:46
阅读次数:
337
### Setting up Operating SystemsOriginally we used Virtual Machines for Oracle VirtualBox with Solaris 11.0 and CentOS 6.4. Unfortunately, these versi...
分类:
其他好文 时间:
2015-09-12 20:09:02
阅读次数:
334