Hello!
2013/8/7 yurn...@gmail.com:
> 刚开始看systemtap,发现一个问题:
> probe process("a.out").function("main")
> {
> printf("%d\n",$argc);
> }
>
> 这样捕捉时候,发现一直返回0.
> 版本:
> [root@localhost systemtap]# stap --version
> Systemtap translator/driver (version 1.8/0.152 non-git sources)
几个建议:
1. 请尝试最新的 systemtap 2.3
发布:http://sourceware.org/systemtap/ftp/releases/ 1.8 版本很老了,而且确实有不少问题。
2. 请使用 -O1 以上的优化级别编译你的 C 程序。因为 gcc 在 -O0 时倾向于生成错误的 DWARF 调试信息。
3. 请使用 gcc 4.5 以上的版本编译你的程序(最好是最新的 4.7.3)。因为老于 4.5 的 gcc 生成的 DWARF
调试信息很糟糕。
Best regards,
-agentzh
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 openresty@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html