pt_buffer_setup_aux(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pt_buffer_setup_aux(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” we're literally about to set up ToPA tables together and it's gonna slay ✨


🌸 NAME 🌸

pt_buffer_setup_aux β€” set up topa tables for a PT buffer πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

void * pt_buffer_setup_aux (struct perf_event *event , void **pages ,
       int nr_pages , bool snapshot );

✨ ARGUMENTS ✨

  • event β€” the performance event, your main character 🫢
  • pages β€” array of pointers to buffer pages, handed down from perf core
  • nr_pages β€” how many pages are in the buffer, no cap
  • snapshot β€” if this is a snapshot/overwrite counter πŸ‘€

πŸ’– DESCRIPTION πŸ’–

so this is a pmu::setup_aux callback, and what it does is set up the ToPA tables and all the bookkeeping for an AUX buffer. like, the whole entire vibe. tables? handled. bookkeeping? handled. iconic behaviour only πŸ’…

πŸ”₯ RETURN πŸ”₯

our private PT buffer structure πŸ’€ (it's ours, we made it, we're obsessed)

🌈 SEE ALSO 🌈

honestly the whole friend group showed up for this one:


bestie this one lives in the kernel file ./arch/x86/events/intel/pt.c β€” go read it iykyk πŸ“–

and that's the whole page!! mwah πŸ’‹ this came out of ./arch/x86/events/intel, dated October 2026, and it's genuinely giving reference documentation. periodt. πŸ‘‘πŸ§šπŸ’œ

πŸ“¦ where this page comes from