tracing_snap..._cond_enable(9)
π NAME π
okay so bestie, welcome to the tracing_snap..._cond_enable(9) page from the Kernel API Manual β¨ this is the function that's literally here to enable conditional snapshot for an instance β main character energy fr fr π
tracing_snapshot_cond_enable β enable conditional snapshot for an instance. That's the whole name-and-job situation π
β¨ SYNOPSIS β¨
the signature is giving:
int tracing_snapshot_cond_enable (struct trace_array *tr , void
*cond_data , cond_update_fn_t update );
π ARGUMENTS π
trβ the tracing instance. You know, the one getting the conditional snapshot treatment πcond_dataβ user data to associate with the snapshot. Your little data bestie for the snapshot π«Άupdateβ implementation of thecond_snapshotupdate function. Yes, the actual update function doing the work π
π¦ DESCRIPTION π¦
okay so here's the lore: it checks whether the conditional snapshot for the given instance has already been enabled, or whether the current tracer is already using a snapshot. If either one is a yes, it returns -EBUSY β and yeah, that's the busy signal doing its thing π no cap.
If not, it creates a cond_snapshot and saves the cond_data and the update function inside. It returns 0 if successful, and error otherwise. So 0 is the slay outcome, and anything else is the error vibe check failing π
π SEE ALSO π
- Kernel file
./kernel/trace/trace_snapshot.cβ the source file in question, go say hi π¦ tracing_snapshot_cond(9)tracing_cond_snapshot_data(9)tracing_snapshot_alloc(9)tracing_snapshot_cond_disable(9)update_max_tr(9)update_max_tr_single(9)
cute little sign-off π source/version: ./kernel/trace Β· date: October 2026 Β· page: tracing_snap..._cond_enable(9) β bye bestie, go be iconic with those conditional snapshots ππβ¨
π¦ 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