User guide
Developer Guide
vi
5.2. GDB .......................................................................................................................... 53
5.2.1. Simple GDB .................................................................................................... 54
5.2.2. Running GDB .................................................................................................. 55
5.2.3. Conditional Breakpoints ................................................................................... 57
5.2.4. Forked Execution ............................................................................................. 58
5.2.5. Threads .......................................................................................................... 58
5.2.6. GDB Variations and Environments .................................................................... 58
5.2.7. GDB Documentation ........................................................................................ 58
5.3. Variable Tracking at Assignments ................................................................................ 59
5.4. Python Pretty-Printers ................................................................................................ 59
6. Profiling 61
6.1. Profiling In Eclipse ...................................................................................................... 61
6.2. Valgrind ..................................................................................................................... 62
6.2.1. Valgrind Tools .................................................................................................. 62
6.2.2. Using Valgrind ................................................................................................. 63
6.2.3. Valgrind Plug-in for Eclipse ............................................................................. 63
6.2.4. Valgrind Documentation ................................................................................... 64
6.3. OProfile ..................................................................................................................... 64
6.3.1. OProfile Tools .................................................................................................. 64
6.3.2. Using OProfile ................................................................................................. 65
6.3.3. OProfile Plug-in For Eclipse ............................................................................ 65
6.3.4. OProfile Documentation ................................................................................... 66
6.4. SystemTap ................................................................................................................ 66
6.4.1. SystemTap Compile Server .............................................................................. 67
6.4.2. SystemTap Support for Unprivileged Users ........................................................ 67
6.4.3. SSL and Certificate Management ..................................................................... 68
6.4.4. SystemTap Documentation ............................................................................... 68
6.5. Eclipse-Callgraph ....................................................................................................... 69
6.5.1. Launching a Profile With Eclipse-Callgraph ....................................................... 69
6.5.2. The Callgraph View ......................................................................................... 71
6.6. Performance Counters for Linux (PCL) Tools and perf .................................................. 74
6.6.1. Perf Tool Commands ....................................................................................... 75
6.6.2. Using Perf ....................................................................................................... 75
6.7. ftrace ......................................................................................................................... 77
6.7.1. Using ftrace ..................................................................................................... 77
6.7.2. ftrace Documentation ....................................................................................... 78
A. Revision History 79
Index 81