O'Reilly logo

Systems Performance: Enterprise and the Cloud by Brendan Gregg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix E. DTrace to SystemTap

This appendix is a brief guide to converting DTrace one-liners and scripts to SystemTap. Both DTrace and SystemTap were introduced in Chapter 4, Observability Tools, which you should study as background.

Selected differences in functionality, terminology, probes, built-in variables, and functions are listed here. Several one-liners are then converted as examples.

For an additional reference, see “Translating Exiting [sic] DTrace Scripts into SystemTap Scripts” on the SystemTap wiki [1]. This wiki page also shows conversions of one-liners (some of my own) as examples.

Functionality

SystemTap has very similar functionality to DTrace (by design). Here are some key differences you’ll encounter when porting scripts: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required