perf_stat__..._metricgroup(9)
π NAME π
perf_stat__print_shadow_stats_metricgroup β the little function that prints out the metrics associated with the evsel π
okay so bestie, here's the vibe check on how the printing actually goes down:
- In the non-default case, all the metrics associated with the evsel get printed. All of them. The whole buffet. π
- In the default mode, only the metrics from the same metricgroup get printed β plus the name of the metricgroup itself. That's it, that's the whole output. modest. lowkey humble. π
- Wanna print the metrics from the next metricgroup (if there even is one)? π Then invoke the function with the corresponding
metric_expr. that's the move, no cap.
β¨ SYNOPSIS β¨
void * perf_stat__print_shadow_stats_metricgroup (struct
perf_stat_config *config , struct evsel *evsel , int aggr_idx , int *num
, void *from , struct perf_stat_output_ctx *out );
literally just vibes and six arguments, slay π
π ARGUMENTS π
okay so the manpage is being super mysterious about these, and honestly? iconic of it. every single one is marked -- undescribed -- in the source, so I'm not gonna sit here and invent lore that isn't there π
configβ-- undescribed --πevselβ-- undescribed --πaggr_idxβ-- undescribed --πnumβ-- undescribed --πfromβ-- undescribed --πoutβ-- undescribed --π
bestie I'm as curious as you are, but the docs said "no thoughts, head empty" and I respect the boundary π«Ά. the names of the parameters are right there though β go read the code for the real tea, iykyk π
π SEE ALSO π
- Kernel file
./tools/perf/util/stat-shadow.cβ the actual source file this whole thing lives in, main character energy β perf_stat__skip_metric_event(9)β its sibling, also worth a peek π
that's the whole page, bestie, you ate that πβ¨π¦
this gem comes to you straight out of <bold>./tools/perf/util</bold>, and the little timestamp on it says October 2026 β yes, the future, we're ahead of schedule, periodt π
π¦ 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