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: ...

Get Systems Performance: Enterprise and the Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.