Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 14. Tips and Tricks > Tip 13: Keep It Simple

Tip 13: Keep It Simple

And stable. It’s possible to write long and complex DTrace scripts, especially when navigating the thousands of available probes from the fbt and pid providers. An example of this is the fbt-based tcpsnoop.d, shown and explained in Chapter 6, Network Lower-Level Protocols. Although you can write scripts like this, try to solve your tracing needs with short and simple scripts instead.

Long scripts become difficult to maintain. And if they use unstable providers such as fbt and pid, they will need maintenance to match changes in the target software. Always check for the availability of stable providers first, because more are being written each year.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint