update_max_tr_single(9)
π update_max_tr_single(9) β the Kernel API Manual, bestie edition π
okay so literally welcome to the Kernel API Manual page for update_max_tr_single(9) and honestly? she's a baddie with one very specific job. let's get into it β¨
β¨ NAME β¨
update_max_tr_single β only copy one trace over, and reset the rest π«Ά
like... one (1) trace gets the copy treatment and everybody else gets wiped. no cap.
πΈ SYNOPSIS πΈ
void update_max_tr_single (struct trace_array *tr , struct task_struct *tsk , int cpu );
return type is void, so she gives you nothing back, she just does things. main character energy fr π
π¦ ARGUMENTS π¦
trβ the tracer. that's thestruct trace_array *bestie herself πtskβ the task with the latency π (the whole reason we're here)cpuβ the cpu of the buffer to copy. just the one. we're being selective π―
β DESCRIPTION β
Flip the trace of a single CPU buffer between the tr and the max_tr.
that's it, that's the whole vibe. one CPU buffer, two homes (tr and max_tr), and she's flipping it between them like a light switch π§β¨
π₯ SEE ALSO π₯
- Kernel file
./kernel/trace/trace_snapshot.cβ go read the source, iykyk π tracing_snapshot_cond(9)tracing_cond_snapshot_data(9)tracing_snapshot_alloc(9)tracing_snapshot_cond_enable(9)tracing_snapshot_cond_disable(9)update_max_tr(9)β her sibling, the plural one π
and that's the page!! mwah π this came straight out of ./kernel/trace, dated October 2026, and it's update_max_tr_single(9) signing off β slay, bye, go flip some buffers ππ
π¦ 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