Understanding Linux perf: stat and record
What really happens in the kernel when you run perf stat or perf record.
What really happens in the kernel when you run perf stat or perf record.
A practical guide to instrumenting the Linux kernel by adding custom counters to /proc/vmstat