off_cpu_dump(9)
πΈ NAME πΈ
off_cpu_dump β dump off-cpu samples to ring buffer. That's the whole NAME vibe, bestie, and this page is off_cpu_dump(9) from the Kernel API Manual. It's giving kernel API realness, no cap. π
β¨ SYNOPSIS β¨
Here's the signature, copied exact because we do not mess with code, periodt:
int off_cpu_dump (void *ctx , struct offcpu_data *data , struct
offcpu_key *key , struct __stack *stack , __u64 delta );
π ARGUMENTS π
ctxβ the manpage literally says-- undescribed --, so that's all we get, bestie. No lore, no guessing. πdataβ payload for dumping off-cpu samples. It's the stuff getting dumped, slay. β¨keyβ off-cpu data. Yep, that's the description, and we're keeping it iconically brief. πstackβ stack trace of the task before being scheduled out. Obsessed with a good stack trace, honestly. π¦deltaβ also-- undescribed --in the source, so we are not inventing fanfic for it. π
π DESCRIPTION π
So here's the tea: if the threshold of off-cpu time is reached, acquire tid, period, callchain, and cgroup id information of the task, and dump it as a raw sample to perf ring buffer. That's the whole flow, and it ate. π₯π
π¦ SEE ALSO π¦
- Kernel file
./tools/perf/util/bpf_skel/off_cpu.bpf.c
Cute sign-off time π«Ά: this page comes from ./tools/perf/util/bpf_skel, dated October 2026, and yes bestie, it's off_cpu_dump(9) β bye, go dump those samples with main character energy. πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms