From 8008a2655c0f0c9b9890fb4866f774c9b50e170c Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 12:23:33 -0300 Subject: kernel: on today's main Symbols come from Symbols (perf.lookup is gone), string ids from event.stringId, and ptrace.Process is used as it is now. A USDT semaphore of the program itself is raised by the tracer: the kernel's counter landed on the wrong word of a small lld-linked target, whose page of the file is mapped writable twice. test-kernel also runs the library tests of perf, usdt and bpf. Co-Authored-By: Claude Fable 5.2 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index cb4cce5..029241e 100644 --- a/README.md +++ b/README.md @@ -361,7 +361,9 @@ otherwise; `--dry-run` builds everything and lists it. BPF programs, built here as instruction arrays for one process, on the raw tracepoints `sys_enter`, `sys_exit` and `sched_switch` (both threads of a switch, through the kernel's BTF), on kprobes, on uprobes, and on USDT probes, -whose arguments are read in the kernel at the probe. They write `Event`s +whose arguments are read in the kernel at the probe (the program's own +semaphores are raised by writing them: the kernel's counter misses when +lld has mapped that page of the file twice). They write `Event`s into one BPF ring buffer and count what did not fit. A syscall costs 0.15 us, a probe 0.5 to 0.8 (in a VM), 22 to 73 bytes an event. -- cgit v1.3