default_metricgroup_cmp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… default_metricgroup_cmp(9) β€” like, the Kernel API Manual edition πŸŽ€

okay so bestie, gather round, because this one is a tiny function with a very specific job and honestly? it ate. ✨


🌸 NAME 🌸

default_metricgroup_cmp β€” the icon that implements the complex key for the Default metricgroup, and the way it works is that it first sorts by default_metricgroup_name, then by metric_name. two-pass sorting, main character energy only. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int default_metricgroup_cmp (void *priv , const struct list_head *l ,
                            const struct list_head *r );

yes she takes three args and yes she returns an int. no notes. πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • priv β€” ngl bestie, this one is undescribed. the manpage literally says "-- undescribed --" and we are not out here making things up. πŸ™ˆ
  • l β€” also undescribed. mysterious. lowkey giving "we'll never know." 😭
  • r β€” undescribed too, fr fr. three for three, an absolute vibe check fail but we love her anyway. πŸ’€
no cap, all three arguments are listed as undescribed in the original β€” so don't come for me, I'm just the messenger 🫢

⭐ SEE ALSO ⭐

the whole friend group, in the order they were introduced, periodt:


and that's the whole page, babes 🧚 this little cutie lives in ./tools/perf/util and the version stamp is dated October 2026 β€” so yeah, she's from the future and still sorting metricgroups correctly. iconic behavior, honestly. πŸŒˆπŸ’œ

stay slay, read your manpages, and remember: sort by default_metricgroup_name first. always. πŸ“βœ¨

πŸ“¦ where this page comes from