我正在尝试从 Systemtap 运行标准示例脚本之一。procmod_watcher.stp 使用 kprobes 来监视 fork、exec 等。但是当我尝试运行此脚本时出现错误。
semantic error: while resolving probe point: identifier 'kprobe' at /usr/share/systemtap/tapset/linux/nd_syscalls.stp:967:27
source: probe nd_syscall.execve = kprobe.function("do_execve")
果然:stap -L 'kprobe.function("do_execve")'
什么都不返回。怎么会这样?
我正在使用 Ubuntu,已按照以下说明进行操作: Ubuntu @sourceware 上的 Systemtap
我还尝试编译我自己的内核并确保通过配置启用 Kprobes、debug_info 和所有其他必需项。我犯了同样的错误。
我已经在 Fedora 上尝试过相同的脚本,它几乎是开箱即用的。但是我只有一个开启了fedora的虚拟机,并且想继续使用ubuntu一段时间。
我需要做什么才能在 ubuntu 的 systemtap 中启用 kprobes?