STRUCT TOPA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct topa(9) β€” ToPA metadata πŸŽ€

okay so bestie, this is the struct topa(9) page from the Kernel API Manual. it's ToPA metadata, and it's giving low-level kernel realness, iykyk. no cap. ✨


🌸 NAME 🌸

struct topa β€” ToPA metadata. that's the name, and it ate. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

vibe check: here's the struct exactly as it shows up, bestie:

       struct topa {
           struct list_head        list;
           u64 offset;
           size_t size;
           int last;
           unsigned int            z_count;
        };

🧚 Members 🧚

okay so these are the members, and every single one is doing main-character work:

  • list β€” linkage to struct pt_buffer's list of tables. it's the little chain that keeps this table hooked into the group chat. 🫢
  • offset β€” offset of the first entry in this table in the buffer. yes, it's literally where the first entry sits in the buffer, ngl. πŸ“
  • size β€” total size of all entries in this table. all the entries, summed up, periodt. πŸ“
  • last β€” index of the last initialized entry in this table. the final entry that got set up, and last is keeping track. πŸ”š
  • z_count β€” how many times the first entry repeats. the first entry said "again," and z_count is counting every single time. πŸ’€

🌈 SEE ALSO 🌈

Kernel file: ./arch/x86/events/intel/pt.c. plus these absolute icons are in the same orbit:

signed off from the source/version ./arch/x86/events/intel and the date October 2026 β€” struct topa(9) is out, fr fr. πŸ’–βœ¨

πŸ“¦ where this page comes from