parse_event...legacy_cache(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… parse_event...legacy_cache β€” a Kernel API Manual moment

okay bestie, buckle up, because this one is a whole function and the manual page is so real for that. The full government name of this icon is parse_events__decode_legacy_cache, and she lives in the Kernel API Manual. yes, that's the vibe. πŸŽ€

✨ NAME ✨

parse_events__decode_legacy_cache β€” search name for the legacy cache event name. πŸ¦‹

And what does a legacy cache event name actually look like? She's composed of 1, 2 or 3 hyphen separated sections. periodt. Let's break it down:

  • the first section is the cache type
  • the others are the optional op and the optional result

but here's the plot twist 😭 β€” to make life hard, the names in the table also contain hyphens, and the longest name should always be selected. so yeah, greedy girlie behaviour is literally required. no cap. πŸ”₯

🌸 SYNOPSIS 🌸

int parse_events__decode_legacy_cache (const char *name , int
extended_pmu_type , __u64 *config );

she returns an int, takes three args, and does not apologize for the line wrapping. iconic. πŸ‘‘

πŸ’œ ARGUMENTS πŸ’œ

  • name β€” -- undescribed -- πŸ™ˆ yes literally, the source page gives us nothing on this one, so we're not gonna make up a personality for her. she's name. she's a const char *. that's the whole story.
  • extended_pmu_type β€” -- undescribed -- 😭 also left on read by the original docs. an int, and that's all we know, bestie. ngl, the mystery is kind of the point.
  • config β€” -- undescribed -- πŸ’€ the __u64 * of the group and also undocumented. three for three. the manpage said "figure it out" and honestly? respect.
lowkey important: those -- undescribed -- labels are straight from the original page β€” I'm not gonna invent behaviour that isn't written down. if you need the real semantics, go read the source, she's right there. πŸ’–

🫢 SEE ALSO 🫢

go give these siblings some love, they're all in the Kernel file ./tools/perf/util/parse-events.c:

their group chat is honestly unhinged and I'm obsessed. πŸ’…


that's the whole page, bestie β€” drop a πŸŽ€ in the chat, this one came from ./tools/perf/util, dated October 2026, and she ate. fr fr. πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from