tracing_snapshot_cond(9)
π NAME π
okay so bestie, meet tracing_snapshot_cond(9) from the Kernel API Manual β the iconique βconditionally take a snapshot of the current bufferβ function. no cap, itβs the conditional cousin of the snapshot game. π¦
β¨ SYNOPSIS β¨
void tracing_snapshot_cond (struct trace_array *tr , void *cond_data );
π ARGUMENTS π
trβ the tracing instance youβre snapshotting, bestie. thatβs the trace array in question. πcond_dataβ the data that gets tested conditionally and possibly saved. itβs giving βthe vibe check payloadβ π«Ά
π₯ DESCRIPTION π₯
okay so this is literally the same as tracing_snapshot except the snapshot is conditional β the snapshot will only happen if the cond_snapshot.update implementation receiving the cond_data returns true. that means the trace arrayβs cond_snapshot update operation used the cond_data to determine whether the snapshot should be taken, and if it was, presumably saved it along with the snapshot. periodt. π
conditional means conditional, bestie: that update implementation has to return true for the snapshot to happen. πΈ
π SEE ALSO π
- Kernel file
./kernel/trace/trace_snapshot.c tracing_cond_snapshot_data(9),tracing_snapshot_alloc(9),tracing_snapshot_cond_enable(9),tracing_snapshot_cond_disable(9),update_max_tr(9),update_max_tr_single(9)
mwah π β source/version: ./kernel/trace, dated October 2026. go take that conditional snapshot, bestie. π
π¦ 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