我刚安装了systemtap。当我想使用stap -o将结果发送到一个文件中时,我得到了一个错误: sudo stap -o a.out b.stp
semantic error: unable to find member 'mnt_parent' for struct vfsmount (alternatives: mnt_root mnt_sb mnt_flags): operator '->' at /usr/share/systemtap/tapset/dentry.stp:104:54
source: if (@cast(vfsmnt, "vfsmount")->mnt_parent == vfsmnt)我对systemtap使用的语言感到非常困惑。有人能帮我吗?
发布于 2014-03-06 20:52:05
错误消息似乎很清楚;指定的文件正在尝试引用看起来不存在的struct vfsmount (mnt_parent)的成员。
该文件是系统分发包的一部分,所以这不是你的错。然而,问题是你的systemtap版本对于你的内核来说太旧了。(较新的内核总是会破坏API/ABI,因此依赖的工具必须定期进行追赶。)请尝试更新版本。
https://stackoverflow.com/questions/22218688
复制相似问题