tracing_update_buffers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ tracing_update_buffers(9) ✨

Welcome to the Kernel API Manual, bestie β€” today’s main character is tracing_update_buffers(9), and she is here to help your ring buffers do their little glow-up. 🫢 It’s giving kernel-core, no cap.

🌸 NAME 🌸

tracing_update_buffers β€” used by tracing facility to expand ring buffers πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int tracing_update_buffers (struct trace_array *tr );

πŸ’– ARGUMENTS πŸ’–

  • tr β€” the tracing instance ✨

πŸ’… DESCRIPTION πŸ’…

Okay so, lowkey the whole point here is saving memory when the tracing is never used on a system with it configured in. The ring buffers are set to a minimum size. But once a user starts to use the tracing facility, they need to grow to their default size.

This function is to be called when a tracer is about to be used. Periodt. 🫢

πŸ¦‹ 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_snapshot(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), 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).


Cute little sign-off: source/version is ./kernel/trace, dated October 2026, and the page is tracing_update_buffers(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from