Perf Proce不适用于我想要的特定事件

发布于 2025-02-11 03:23:15 字数 692 浏览 3 评论 0原文

我已经编译了获取一些统计信息。我尝试过的是为感兴趣的特定功能设置探针,即kerrbl :: chrostoffel lib/kerbc.c。但是,如果我尝试运行

perf Proce -x/usr/local/bin/gyoto -f

无法显示我想要的此特定功能。尝试使用

perf Proce -x/usr/locar/bin/gyoto [args]'kerrbl :: chrostoffel'

引发错误:

The /home/user/Gyoto/bin/gyoto file has no debug information.
Rebuild with -g, or install an appropriate debuginfo package.
Error: Failed to add events.

但是据我所知,我确实启用调试信息在汇编期间。

在此特定情况下,我应该如何正确放置探测器?

I have compiled this open source software and would like to use perf to get some statistics. What I have tried is setting probes for the specific function of interest, namely KerrBL::chrostoffel inside lib/KerBC.C. But if I try running

perf probe -x /usr/local/bin/gyoto -F

Fails to show this specific function that I want. Trying to place a probe with

perf probe -x /usr/local/bin/gyoto [args] 'KerrBL::chrostoffel'

throws the error:

The /home/user/Gyoto/bin/gyoto file has no debug information.
Rebuild with -g, or install an appropriate debuginfo package.
Error: Failed to add events.

But as far as I know, I did enable debug info during compilation.

How should I properly place a probe in this specific case?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文