Chapter 18. Tips, Tricks, and Common Problems

This chapter shares tips and tricks for successful BPF tracing, along with common problems that you might encounter and how to fix them.

Tips and Tricks:

18.1 Typical event frequency and overhead

18.2 Sample at 49 or 99 Hertz

18.3 Yellow pigs and gray rats

18.4 Write target software

18.5 Learn syscalls

18.6 Keep it simple

Common Problems:

18.7 Missing events

18.8 Missing stack traces

18.9 Missing symbols (function names) when printing

18.10 Missing functions when tracing

18.11 Feedback loops

18.12 Dropped events

18.1 Typical Event Frequency and Overhead

Three main factors determine the CPU overhead of a tracing program:

  • The frequency of the event that is traced.

  • The action performed while tracing. ...

Get BPF Performance Tools 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.