有没有办法在Ubuntu上使用Systemtap来探测python3用户空间的功能?我正在考虑基于Systemtap文档做一些类似的事情
probe process("/usr/lib/python3").function("main")
{
some handlers
}当我用上面的文件运行stap时,我得到了
WARNING: cannot find module /mnt/sdb/usr/bin/python3.6 debuginfo: No DWARF information found [man warning::debuginfo]我在这里错过了什么吗?这是跟踪Python应用程序的正确方法吗?
发布于 2021-08-05 11:29:14
这应该是可行的,但确实需要一些python debuginfo。如果您在构建elfutils/systemtap时具有debuginfod功能,请使用setenv DEBUGINFOD_URLS=https://debuginfod.elfutils.org/命令,然后重试。如果没有,请考虑从http://ddebs.ubuntu.com/ubuntu/pool/main/p/python3.5/下载并安装适当的dbgsym (可能)。
https://stackoverflow.com/questions/67377727
复制相似问题