perf_pmu__m...dcard_uncore(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… perf_pmu__match_wildcard_uncore(9) β€” Kernel API Manual, but make it make sense

okay bestie, strap in πŸŽ€ this one lives in the Kernel API Manual, and it's literally just one job: figure out if some little string matches a PMU's name. That's it. That's the whole vibe check. ✨


🌸 NAME 🌸

perf_pmu__match_wildcard_uncore β€” the function that answers the question does to_match match the PMU's name? πŸ‘€ (spoiler: it's giving "yes or no", and it returns a bool, so like… no hedging, no maybes, no "it's complicated" πŸ’€)


✨ SYNOPSIS ✨

bool perf_pmu__match_wildcard_uncore (const char *pmu_name , const char *to_match );

two const char *s walk in, a bool walks out. iconic behavior honestly 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pmu_name β€” this one is the pmu->name or the pmu->alias, i.e. the thing you're matching against. your reference point. your main character, if you will πŸ‘‘
  • to_match β€” this is the json struct pmu_event name. and here's the tea πŸ“: it may lack a suffix, and if it does, that totally matches. OR it can be shaped like "socket,pmuname", which will match "socketX_pmunameY" β€” so the comma-socket form expands out into the real socketX_pmunameY shape and goes slay, we match πŸ’–
ngl the comma form is the sneaky one β€” read it twice, it's not doing what your first glance thinks it's doing πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group 🫢 go check out:


that's the whole page, bestie, no notes 🌈 this came out of ./tools/perf/util, dated October 2026 β€” and yes we're still out here matching wildcards uncore-style, periodt πŸ’…πŸ’œ

πŸ“¦ where this page comes from