当前位置: 首页 > Linux

systemtap学习记录(更新中)

时间:2023-04-06 11:44:14 Linux

目前是基于ubuntu12环境,部分stap脚本依然无法获取内核变量(即使安装了ubuntu14的elfutils,更新了libc6的版本,还是不行),以及参数位置需要手动指定。staprun是执行编译好的stap脚本。常见错误记录elfutils版本太旧,导致无法识别变量,(ubuntu12安装systemtap3.0)可以手动调整获取变量的方式。参考文档:http://blog.csdn.net/wangzuxi...root@scaler-20161221-node3:~/system_tap/systemtap-3.0/EXAMPLES/io#stapiotime.stp-c"p??wd"语义错误:while处理探针kernel.function("compat_SyS_open@fs/compat.c:1090").returnfrom:syscall.open.returnfrom:syscall.open.returnsemanticerror:notaccessibleatthisaddress(pc:0xfffffff8121fd30)[manerror::dwarf]:标识符'$filename'在iotime.stp:43:26dieoffset:0x1ca0cf4来自/usr/lib/debug/lib/modules/4.1.35-server/vmlinux函数:compat_SyS_open在fs/compat.c:1090<无法建议任何替代位置,elfutils太旧>来源:filename=user_string($filename)^第2次:分析失败。[人错误::pass2]