---
schema_version: 1
route: /t/bpftrace.md
tool: "bpftrace"
---

# sincecutoff.com /t/bpftrace — bpftrace

- name: bpftrace
- kind: cli
- children: none
- homepage: <https://github.com/bpftrace/bpftrace>

Changes to the tools coding agents drive, since a model's training cutoff, each linked to its first-party source. Check installed versions and limitations before acting; a cutoff date does not establish what a model knows.
Original editorial content: [Apache 2.0](https://sincecutoff.com/v1/data-license.txt), by [0xPatrick](https://0xpatrick.dev). Preserve applicable license and [NOTICE](https://sincecutoff.com/notice.txt) attribution when redistributing. Third-party source text and examples retain their own rights. [License scope and attribution](https://sincecutoff.com/v1/license.json).
To stay current, read the changes feed: [`/v1/changes.md?tool=bpftrace`](https://sincecutoff.com/v1/changes.md?tool=bpftrace) (or `.json`), adding `since=YYYY-MM-DD` for your training cutoff. Entries for registered children are included; the registry itself is `/v1/tools.json`. How to page and save your place: [llms.txt](https://sincecutoff.com/llms.txt).

### bpftrace adds statement probes by source location (2026-05-26)
- 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."
