1.1. About this guide ........................................................................................................... 1
1.5. The stap command ...................................................................................................... 3
1.6. Safety and security ...................................................................................................... 4
2.1. Probe scripts ................................................................................................................ 7
2.2. Tapset scripts .............................................................................................................. 7
3.1. Probe definitions .......................................................................................................... 9
3.2. Probe aliases ............................................................................................................... 9
3.2.3. Probe alias usage ............................................................................................ 11
3.3. Variables .................................................................................................................... 11
3.4. Auxiliary functions ...................................................................................................... 11
3.5. Embedded C .............................................................................................................. 12
4.1. General syntax ........................................................................................................... 15
4.1.1. Prefixes ........................................................................................................... 15
4.1.2. Suffixes ........................................................................................................... 15
4.3. DWARF-less probing .................................................................................................. 18
4.4. Marker probes ............................................................................................................ 19
4.5. Timer probes .............................................................................................................. 19
4.6. Return probes ............................................................................................................ 20
4.7. Special probe points ................................................................................................... 21
4.7.1. begin ............................................................................................................... 21
4.7.2. end ................................................................................................................. 21
4.7.4. never .............................................................................................................. 21
4.8.1. $counter .......................................................................................................... 22
4.8.2. read_counter ................................................................................................... 22
5.1. Identifiers ................................................................................................................... 23
5.2. Data types ................................................................................................................. 23
5.2.1. Literals ............................................................................................................ 23
1
7
9
15
23
iii