Linux进程被视为文件,Linux下如何知道文件被那个进程写

您好,从您博客中学习到这个方法,不过木有成功呀,求助:

1. 我的inodewatch.stp在不同的目录下

/usr/share/doc/systemtap-client-1.8/examples/io/inodewatch.stp

不过内容一致,应该是不影响的吧~

内核版本:2.6.32-279.14.1.el6.x86_64

我运行“rpm -qf /usr/bin/stap”得到的结果是:

systemtap-client-1.8-7.el6.x86_64

systemtap-devel-1.8-7.el6.x86_64

2. 然后根据您用法,我在boot分区随便建一个文件,并写入内容……

然后调用stap去找到哪个进程在写该文件!报错了……

[root@test boot]# stap /usr/share/doc/systemtap-client-1.8/examples/io/inodewatch.stp 8 1 25

semantic error: while resolving probe point: identifier ‘kernel’ at /usr/share/systemtap/tapset/vfs.stp:820:19

source: probe vfs.write = kernel.function(“vfs_write”)

^

semantic error: missing x86_64 kernel/module debuginfo under ‘/lib/modules/2.6.32-279.14.1.el6.x86_64/build’

semantic error: while resolving probe point: identifier ‘vfs’ at /usr/share/doc/systemtap-client-1.8/examples/io/inodewatch.stp:3:7

source: probe vfs.write, vfs.read

^

semantic error: no match

semantic error: while resolving probe point: identifier ‘kernel’ at /usr/share/systemtap/tapset/vfs.stp:752:18

source: probe vfs.read = kernel.function(“vfs_read”)

^

semantic error: while resolving probe point: identifier ‘vfs’ at /usr/share/doc/systemtap-client-1.8/examples/io/inodewatch.stp:3:18

source: probe vfs.write, vfs.read

^

Pass 2: analysis failed. Try again with another ‘–vp 01′ option.

Missing separate debuginfos, use: debuginfo-install kernel-2.6.32-279.14.1.el6.x86_64

正在http://sourceware.org/systemtap/ 继续学习中……

求指导: lin_credible@163.com. 或者直接回复,万分感谢~~

[Reply]

Yu Feng Reply:

June 27th, 2013 at 11:51 am

系统的符号信息没安装好。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值