python 用 systemtap 做什么?

what is python doing with systemtap?

我在 CentOS-7 发行版上注意到 python-2 和 python-3 RPM 安装都有一些 "systemtap" 脚本安装在 /usr/share/systemtap

python 使用 systemtap 脚本做什么?

我阅读了一些关于什么是 systemtap 和描述[1] 我读到的内容 systemtap 是一个内核 debugging/instrumentation 工具。

[1] 来自 whosebug.com tag description:

Systemtap is tool to probe or trace a running linux system,
supporting visibility into both kernel- (its initial focus) and user-space. It uses dynamically loaded probes to gather performance and tracing data about the whole system or just selected processes.

SystemTap 可以检查 python。参考:https://docs.python.org/3/howto/instrumentation.html

因此您在 /usr/share/systemtap 中看到的脚本可能包含一些 SystemTap 跟踪 python 代码的辅助函数。