Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在没有特权的 docker 容器中运行 SystemTap ?我已经安装/lib/modules并/sys/kern/debug在容器内,并授予容器所有功能,但这并没有帮助。虽然 SystemTap 确实安装了模块没有问题,但它无法在第 5 步中连接到模块并出现错误:无法打开模块控制通道。
/lib/modules
/sys/kern/debug
解决方案是在 /sys 外部挂载具有读写权限的 debugfs。如果没有特权模式,/sys 以只读方式挂载,SystemTap 无法写入跟踪器模块的控制通道(debugfs 文件)。