STRUCT AUXTRACE_MMAP(9)
Okay bestie, welcome to the Kernel API Manual page for struct auxtrace_mmap(9) β yes, that's the manual name, and this struct is the main character today. π
β¨ NAME β¨
struct auxtrace_mmap β records an mmap of the auxtrace buffer. That's the whole name-vibe, no cap. π¦
π§ SYNOPSIS π§
Here's the struct, copied exactly, no edits, no cap:
struct auxtrace_mmap {
void *base;
void *userpg;
size_t mask;
size_t len;
u64 prev;
int idx;
pid_t tid;
int cpu;
};
π Members π
Let's go through the members like we're doing a group-chat roll call:
baseβ address of mapped area.userpgβ pointer to the buffer'sperf_event_mmap_page.maskβ0iflenis not a power of two, otherwise(len - 1).lenβ size of mapped area.prevβ previousaux_head.idxβ index of this mmap.tidβ tid for a per-thread mmap (also set if there is only 1 tid on a per-cpu mmap) otherwise0.cpuβ cpu number for a per-cpu mmap otherwise-1.
π SEE ALSO π
Kernel file ./tools/perf/util/auxtrace.h β and the whole squad: struct itrace_synth_opts(9), struct auxtrace_index_entry(9), struct auxtrace_index(9), struct auxtrace(9), struct auxtrace_buffer(9), struct auxtrace_queue(9), struct auxtrace_queues(9), struct auxtrace_heap_item(9), struct auxtrace_heap(9), struct auxtrace_mmap_params(9), struct auxtrace_record(9), struct addr_filter(9), struct addr_filters(9).
so yeah β source/version: ./tools/perf/util, date: October 2026, page: struct auxtrace_mmap(9) π«Άβ¨
π¦ 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