Hello!
2015-03-04 0:14 GMT-08:00 郭阳3:
> 为什么我使用调试工具,如下命令:
> ./sample-bt-off-cpu -p 22077 -t 5
>
> 会报错:
> semantic error: while resolving probe point: identifier 'scheduler' at
> <input>:28:7
> source: probe scheduler.cpu_on {
> ^
>
这个错误说明你没有安装内核的调试符号,一般是 kernel-devel 这个安装包。
引用一下对应的官方文档:
https://github.com/openresty/nginx-systemtap-toolkit#prerequisites
"... you need to install the kernel debug symbols and kernel headers
as well. Usually you just need the `kernel-devel` and
`kernel-debuginfo` packages (matching your current `kernel` package)
from your Linux distributions, respectively."
Regards,
-agentzh