From 952af9711cc6a4de987a9d9d45e1e36721c5b470 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 12:15:20 -0300 Subject: ztrace perf takes the target's own ring: allocations among the page faults --preload and --alloc on ztrace perf: what the agent says and what the kernel sees are merged by time into one recording (perf.Sorted, as probe merges BPF and perf). test-together runs a list under both. --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 029241e..922ab77 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,8 @@ ztrace cc -- clang -O0 targets/instr_list.c -o list ztrace record --by break -b push -b reverse --alloc --preload zig-out/lib/libztrace-agent.so -- ./list ztrace dbg --ring -- ./list # breakpoints and time travel over what the program says of itself ztrace show out.ztrace 40 # the thread's line and calls, the live heap, each variable's bytes +ztrace perf --faults --syscalls --alloc --preload zig-out/lib/libztrace-agent.so -- ./list + # the kernel's view too: each malloc, the brk it makes, the faults of its first touch zig build test-together ``` -- cgit v1.3