tracing_snapshot(9)
π tracing_snapshot(9) β the kernel API manual, bestie edition π
okay so real talk, this one's from the Kernel API Manual and it's about tracing_snapshot(9) β short name, big main-character energy β¨
πΈ NAME πΈ
tracing_snapshot β take a snapshot of the current buffer π
π SYNOPSIS π
void tracing_snapshot (void );
π¦ ARGUMENTS π¦
voidβ literally no arguments. not a single one. zero. the void is voiding π
β¨ DESCRIPTION β¨
okay so bestie, here's the vibe: this function causes a swap between the snapshot buffer and the current live tracing buffer. so you can use it to take snapshots of the live trace when some condition gets triggeredβ¦ and then keep on tracing. slay, you get both π
β οΈ note note note: make sure you allocate the snapshot first, either with a tracing_snapshot_alloc, or by doing it manually with:
echo 1 > /sys/kernel/tracing/snapshot
and if the snapshot buffer is not allocated? it will stop tracing. basically making a permanent snapshot. no cap, that's forever π«Ά
π₯ SEE ALSO π₯
Kernel file ./kernel/trace/trace.c β plus the whole friend group:
trace_array_put(9)tracing_is_enabled(9)tracing_on(9)tracing_alloc_snapshot(9)tracer_tracing_disable(9)tracer_tracing_enable(9)tracing_off(9)tracer_tracing_is_on(9)tracing_is_on(9)register_tracer(9)tracing_start(9)tracing_stop(9)trace_buffered_event_enable(9)trace_buffered_event_disable(9)trace_dump_stack(9)ignore_event(9)trace_adjust_address(9)tracing_update_buffers(9)trace_user_fault_destroy(9)trace_user_fault_init(9)trace_user_fault_get(9)trace_user_fault_put(9)trace_user_fault_read(9)err_pos(9)tracing_log_err(9)trace_array_get_by_name(9)tracing_init_dentry(9)
and that's the whole page, bestie π this one lives in ./kernel/trace and the page itself is dated October 2026, filed under tracing_snapshot(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