tracing_snapshot_cond(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈


mwah πŸ’‹ β€” source/version: ./kernel/trace, dated October 2026. go take that conditional snapshot, bestie. πŸ‘‘

πŸ“¦ where this page comes from