Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's an alternative for DTrace on Linux? [closed]

Tags:

linux

dtrace

From what I can see, a DTrace implementation on Linux is held up by licensing and politics. What are the alternatives currently?

like image 407
JanePhanie Avatar asked Jan 13 '10 18:01

JanePhanie


2 Answers

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.

You can see how it compares to dtrace in this table on the systemtap website (May be partisan :-)

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.

It has been said that kprobes are a dtrace replacement, but I've never tried them.

like image 181
Alex Brown Avatar answered Sep 22 '22 10:09

Alex Brown


SystemTap is a higher level abstraction built on Kprobes. For more information about how Kprobes work, you can read my technical article on LWN.

As Alex mentioned, Systemtap is essentially solving the same problem as dtrace, except that it's somewhat slower (you may not perceive it to be so, depending upon what you're trying to do with it) than dtrace and not quite as polished or safe to use.

To install SystemTap SDT development package, try:

yum install systemtap-sdt-devel 
like image 24
Sudhanshu Avatar answered Sep 21 '22 10:09

Sudhanshu