免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: todaygood

[内核模块] 搞不懂为何有了kprobe了还要systemtap? [复制链接]

论坛徽章:
2
酉鸡
日期:2013-09-26 11:11:15摩羯座
日期:2014-01-08 13:45:19
发表于 2014-01-09 11:08 |显示全部楼层
回复 20# todaygood

[root@localhost stap_exercise]#  stap -v ./trace_route.stp
Pass 1: parsed user script and 147 library script(s) using 373420virt/188288res/2968shr/188696data kb, in 0usr/1080sys/1402real ms.
Pass 2: analyzed script: 65 probe(s), 13 function(s), 4 embed(s), 2 global(s) using 579452virt/241872res/4228shr/242100data kb, in 920usr/1930sys/15332real ms.
Pass 3: translated to C into "/tmp/stapxauSja/stap_48850f8913e5d01d8b2093a1df95c209_17460_src.c" using 576988virt/244696res/7172shr/242100data kb, in 400usr/0sys/193real ms.
Pass 4: compiled C into "stap_48850f8913e5d01d8b2093a1df95c209_17460.ko" in 6890usr/1260sys/10813real ms.
Pass 5: starting run.
    swapper/1(0): <-- arp_process
    sshd(9711): <-- tcp_current_mss
  17 sshd(9711): <-- __sk_dst_check
  43 sshd(9711): <-- ip_finish_output
97878 swapper/1(0): <-- ip_rcv_finish
97892 swapper/1(0): <-- tcp_v4_do_rcv
200108 sshd(9711): <-- tcp_current_mss
200118 sshd(9711): <-- __sk_dst_check
200130 sshd(9711): <-- ip_finish_output
298001 swapper/1(0): <-- ip_rcv_finish
    。。。。

[root@localhost stap_exercise]# rpm -qa |grep systemtap
systemtap-devel-2.3-1.fc19.x86_64
systemtap-client-2.3-1.fc19.x86_64
systemtap-runtime-2.3-1.fc19.x86_64
systemtap-2.3-1.fc19.x86_64
[root@localhost stap_exercise]# uname -a
Linux localhost.localdomain 3.9.5-301.fc19.x86_64 #1 SMP Tue Jun 11 19:39:38 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

论坛徽章:
0
发表于 2014-01-09 22:18 |显示全部楼层
jun:/etc/sysconfig/network # uname -a
Linux jun.suse.com 3.7.10-72.g8ec70cd-desktop #1 SMP PREEMPT Fri Nov 22 12:47:48 UTC 2013 (8ec70cd) x86_64 x86_64 x86_64 GNU/Linux
jun:/etc/sysconfig/network # cat /etc/SuSE-release
openSUSE 12.3 (x86_64)
VERSION = 12.3
CODENAME = Dartmouth
jun:/etc/sysconfig/network # rpm -qa | grep systemtap
systemtap-runtime-2.0-2.4.1.x86_64
systemtap-2.0-2.4.1.x86_64

论坛徽章:
2
酉鸡
日期:2013-09-26 11:11:15摩羯座
日期:2014-01-08 13:45:19
发表于 2014-01-10 10:09 |显示全部楼层
这个版本systemtap-2.0+ 貌似发布很久了,试下更新到最新的版本,或者自己下源代码编译最新的版本
https://sourceware.org/bugzilla/show_bug.cgi?id=14712 比较可疑
1.相似的错误
2.发布时间恰好在systemtap-2.0之后
仅供参考

论坛徽章:
0
发表于 2014-01-13 22:28 |显示全部楼层
回复 23# hejianet
应该是这个问题,thanks.

BTW: 我之所以觉得systemtap不好,主要是我一直不需要使用systemtap优点的地方,相反经常碰到其弱点的地方。
   

论坛徽章:
0
发表于 2014-01-16 13:01 |显示全部楼层
回复 8# tempname2
感觉像是日本人.


   

论坛徽章:
0
发表于 2014-12-26 10:38 |显示全部楼层
麻烦大神们看看这个帖子,给回复一下,谢谢


kprobes如何进行单步调试
http://bbs.chinaunix.net/forum.p ... mp;fromuid=28536038

论坛徽章:
0
发表于 2014-12-30 11:40 |显示全部楼层
再请教一个问题,就是 kprobe 的 post里面,可以得到当前执行过的语句的 寄存器的值,寄存器的值不直观,怎么能做的让他显示更直观呢?

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-11-29 06:20:00
发表于 2016-04-29 14:08 |显示全部楼层
不错,学习了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP