---
next_cursor: eyJzY29yZSI6MCwic2VxIjoxOTgzLCJzaW5jZSI6bnVsbCwidG9vbCI6ImJwZnRyYWNlIiwidiI6MX0
has_more: false
next: https://sincecutoff.com/v1/changes.md?tool=bpftrace&score=0&cursor=eyJzY29yZSI6MCwic2VxIjoxOTgzLCJzaW5jZSI6bnVsbCwidG9vbCI6ImJwZnRyYWNlIiwidiI6MX0
items: 1
---
# sincecutoff.com changes: bpftrace

## bpftrace adds statement probes by source location (bpftrace, 2026-05-26)
Published 2026-10-19
- slug: bpftrace-adds-statement-probes-by-source-location-a9c1c60f439d
- score: 0.95

How to use it:

When the target has DWARF source-location information, trace a valid statement from the specified file with a source-location uprobe; use the optional column to narrow the location.

Examples:

```
bpftrace -e 'uprobe:<binary>@<file>:<line> { printf("hit\n"); }'
```

- why_it_matters: Trace a particular source statement while debugging a program.
- sources: <https://github.com/bpftrace/bpftrace/releases/tag/v0.26.0>, <https://github.com/bpftrace/bpftrace/blob/v0.26.0/docs/language.md>
- gotchas: "Version: v0.26.0"; "<binary> (required): ELF binary to probe."; "<file> (required): Absolute or relative source-file path."; "<line> (required): Line number that must refer to a valid statement in the file."; "<column>: Optional column in the source location; if supplied, it must refer to a valid statement."; "{ ... } (required): Probe action block; runs when the probe fires."; "Prerequisite: The target needs DWARF source-location information for statement probes."; "Prerequisite: The binary path must identify a valid ELF target; only statements originating in the specified file are considered, so statements from included files are ignored."

Next: https://sincecutoff.com/v1/changes.md?tool=bpftrace&score=0&cursor=eyJzY29yZSI6MCwic2VxIjoxOTgzLCJzaW5jZSI6bnVsbCwidG9vbCI6ImJwZnRyYWNlIiwidiI6MX0
Save `next_cursor`; next visit, pass it to get only what was published since.
<!-- end of page -->
