summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 922ab77..64a11be 100644
--- a/README.md
+++ b/README.md
@@ -109,6 +109,12 @@ ztrace perf --faults --syscalls --alloc --preload zig-out/lib/libztrace-agent.so
zig build test-together
```
+Static probes (USDT, DTrace's) need neither BPF nor root this way: `ztrace
+record --by break -b 'usdt:libc:*' -- ./prog` arms each probe as a
+breakpoint that records a `probe` event with its arguments and runs on.
+glibc ships 78 of them (`memory_sbrk_more`, `setjmp`, `lll_lock_wait`...);
+`<sys/sdt.h>` puts your own into a program.
+
`--ring` (implied by `--preload` and `--alloc`) gives a target under
ptrace the ring `ztrace run` gives it; the debugger drains it while the
target runs and before it reports a stop. The agent's hooks and syscall