perf_pmu__ma...uffix_uncore(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… perf_pmu__ma...uffix_uncore(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a little function with a very long name and a very specific job, and honestly? it ate. let's get into it 🫢


🌸 NAME 🌸

perf_pmu__match_ignoring_suffix_uncore β€” so like, the whole question this function is asking is: does the pmu_name match tok if we just… ignore any trailing suffix on pmu_name and on tok? πŸ™ˆ lowkey genius. and to be clear, that suffix has to be in the form tok_{digits}, or tok{digits}. no other silliness allowed, ok? πŸ’…


✨ SYNOPSIS ✨

bool perf_pmu__match_ignoring_suffix_uncore (const char *pmu_name ,
       const char *tok );

it returns a bool, it takes two const char *, and yes that's the whole vibe check πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • pmu_name β€” the pmu_name in question, and it might have a suffix on the end. might not. we don't judge, we just check πŸ‘‘
  • tok β€” the possible match for pmu_name. like, the candidate. the one being compared against. the moment of truth fr fr ⭐

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file ./tools/perf/util/pmu.c (that's where the magic lives, iykyk), plus a whole friend group of related functions β€” go say hi to them:


ngl the title up top gets cut off with a ... and that's just how the page rolls β€” not me doing it, the manpage did that πŸ’€

and that's the page, bestie!! no notes, 10/10, she understood the assignment 🌈

source path: ./tools/perf/util Β· date: October 2026 Β· page: perf_pmu__ma...uffix_uncore(9) β€” mwah, that's a wrap πŸŽ€πŸ’œπŸ“

πŸ“¦ where this page comes from