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 . This wiki page also shows conversions of one-liners (some of my own) as examples.
SystemTap has very similar functionality to DTrace (by design). Here are some key differences you’ll encounter when porting scripts: ...