parse_event...legacy_cache(9)
π 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'sname. she's aconst char *. that's the whole story.extended_pmu_typeβ-- undescribed --π also left on read by the original docs. anint, 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
- 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