STRUCT TRACE_BUFFER_META(9)
π struct trace_buffer_meta (9) β like, the Kernel API Manual page, bestie π
okay so picture this: it's giving Ring-buffer Meta-page description. that's the whole vibe. β¨
π NAME π
struct trace_buffer_meta β the ring-buffer meta-page description, and yes it's exactly as iconic as it sounds π«Ά
πΈ SYNOPSIS πΈ
struct trace_buffer_meta {
__u32 meta_page_size;
__u32 meta_struct_len;
__u32 subbuf_size;
__u32 nr_subbufs;
struct {
__u64 lost_events;
__u32 id;
__u32 read;
} reader;
__u64 flags;
__u64 entries;
__u64 overrun;
__u64 read;
__u64 pages_lost;
__u64 pages_touched;
};
like, that's the whole struct. no cap, that's it π
π¦ Members π¦
okay bestie, field-by-field, let's go π
meta_page_sizeβ the size of this meta-page. that's the number, periodt β¨meta_struct_lenβ the size of this structure itself. self-aware king πsubbuf_sizeβ the size of each sub-buffer πnr_subbufsβ the number of subbfs in the ring-buffer, including the reader. (yes, "subbfs" β we don't edit the source, we respect the source π)readerβ the reader composite info structure, a little struct inside the struct, main character energy πreader.lost_eventsβ number of events lost at the time of the reader swap πreader.idβ subbuf ID of the current reader. ID range[0 : nr_subbufs - 1]βreader.readβ number of bytes read on the reader subbuf π
flagsβ placeholder for now,0until new features are supported. it's lowkey just vibing there πentriesβ number of entries in the ring-buffer π₯overrunβ number of entries lost in the ring-buffer πreadβ number of entries that have been read πpages_lostβ number of pages overwritten by the writer πpages_touchedβ number of pages written by the writer β¨
π SEE ALSO π
- Kernel file
./include/uapi/linux/trace_mmap.hβ go read it, iykyk π§
π friendly reminder bestie:flagsis literally a placeholder for now,0until new features are supported β so don't go building your whole personality on it yet π«Ά
and that's a wrap, gorgeous β¨ this little gem lives in ./include/uapi/linux, dated October 2026 β so like, slightly future-core of it, and honestly? slay. ππ¦π
π¦ 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