问题描述
据我所见,Linux上的DTrace实现受到许可和政策的阻碍.当前有哪些替代方案?
From what I can see, a DTrace implementation on Linux is held up by licensing and politics. What are the alternatives currently?
推荐答案
Systemtap 旨在解决同一问题像dtrace这样的问题,并且具有类似的用户界面-用户编写了小的脚本,这些脚本将操作附加到命名探针上.
Systemtap is designed to solve the same sort of problems as dtrace, and has a similar user interface – the user writes small scripts which attach actions to named probes.
据说它是不稳定的,默认情况下通常不会编译到您的内核中,但是一旦我工作了,我就没有任何问题.
It is said to be unstable, it's not usually compiled into your kernel by default, but once I got it working I didn't have any problems.
您可以在此表在systemtap网站上查看(游击队:-)
You can see how it compares to dtrace in this table on the systemtap website (May be partisan :-)
Dtrace已由Paul Fox(一个狂热者)部分移植到Linux,并且可以下载以供您尝试-查看他的博客.
Dtrace has been partly ported to Linux by Paul Fox, an enthusiast, and is available for download for you to try - check out the links on his blog.
有人说 kprobes 是dtrace的替代品,但我从未尝试过.
It has been said that kprobes are a dtrace replacement, but I've never tried them.
这篇关于在Linux上DTrace的替代方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!