STRUCT PERF_ADDR_FILTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct perf_addr_filter(9) β€” address range filter definition πŸ’–

okay so bestie, this is the Kernel API Manual, section 9, and we're talking about the absolute icon that is struct perf_addr_filter. It's giving "address range filter definition" and honestly? Obsessed. πŸŽ€

🌸 NAME 🌸

struct perf_addr_filter β€” address range filter definition. No cap, that's the whole name vibe. πŸ’…

✨ SYNOPSIS ✨

       struct perf_addr_filter {
           struct list_head                entry;
           struct path                     path;
           unsigned long                   offset;
           unsigned long                   size;
           enum perf_addr_filter_action_t  action;
        };

🫢 Members 🫢

  • entry β€” event's filter list linkage; it's how this little guy is linked into the filter list, iykyk πŸ”—
  • path β€” object file's path for file-based filters; yes, the actual path energy πŸ›€οΈ
  • offset β€” filter range offset, literally where the range starts ✨
  • size β€” filter range size; and bestie, size==0 means single address trigger 🎯
  • action β€” filter/start/stop; iconic trio, no notes πŸ’…

πŸ¦‹ Description πŸ¦‹

This is literally a hardware-agnostic filter configuration as specified by the user. Periodt. It's giving "the user said what they said" and the hardware just has to deal. πŸ’–

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/perf_event.h
  • struct hw_perf_event(9)
  • struct pmu(9)
  • struct perf_addr_filter(9)
  • struct perf_event(9)
  • struct perf_event_context(9)
  • struct perf_ctx_data(9)

mwah πŸ’‹ this page's source is ./include/linux, date October 2026. Byeee bestie, go filter those address ranges! πŸ¦‹βœ¨πŸ’…

πŸ“¦ where this page comes from