tracing_snapshot_alloc(9)
NAME β¨
okay so bestie, welcome to the Kernel API Manual β this page is literally tracing_snapshot_alloc(9), title and all, and it's giving βallocate + snapshotβ main character energy. π
tracing_snapshot_alloc β allocate and take a snapshot of the current buffer. π¦
SYNOPSIS π
void tracing_snapshot_alloc (void );
ARGUMENTS π
voidβ no arguments. literally none, bestie, not even a lil one. π«Ά
DESCRIPTION πΈ
Okay so this is similar to tracing_snapshot, but it will allocate the snapshot buffer if it isn't already allocated. That's the glow-up: alloc first, snapshot too. β¨
Use this only where it is safe to sleep, as the allocation may sleep. No cap β that's the important caveat, so don't ignore it. π
This causes a swap between the snapshot buffer and the current live tracing buffer. You can use this to take snapshots of the live trace when some condition is triggered, but continue to trace. It's giving βsnapshot and keep it movingβ energy. π
Sleep-safe zone only, bestie: the allocation may sleep, so use this only where it is safe to sleep. π«Ά
SEE ALSO π¦
- Kernel file
./kernel/trace/trace_snapshot.c tracing_snapshot_cond(9)tracing_cond_snapshot_data(9)tracing_snapshot_cond_enable(9)tracing_snapshot_cond_disable(9)update_max_tr(9)update_max_tr_single(9)
k bye bestie π this iconic page lives at ./kernel/trace, is dated October 2026, and answers to tracing_snapshot_alloc(9). periodt. π
π¦ 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