summaryrefslogtreecommitdiff
path: root/targets/agent_list.c
Commit message (Collapse)AuthorAge
* agent_list: the page is read through a volatile pointerGabriel Schneider7 days
| | | | | Without UBSan the compiler at -O1 folds the read and deletes aligned_alloc with it, and the list check counts one allocation short.
* agent: the in-process backend, and ztrace run's options for itGabriel Schneider7 days
libztrace-agent.so (preloaded) and libztrace-agent.a (linked in), one source: map and thread_start at startup; alloc/free from the interposed allocator; syscall_enter/exit through Syscall User Dispatch; call/ret from int3 hooks; mem_write from watched regions diffed in-process; the target-side API (include/ztrace.h, and the ztrace-agent module for Zig). ztrace run turns each on (--alloc --syscalls --hook --watch), chooses the moments (--cut), and stops the target at event kinds without ptrace (--stop-at, --read, -i). test-agent records real targets and checks the recordings. Co-Authored-By: Claude Fable 5.2 <[email protected]>