find_tool_events(9)
okay so this is find_tool_events(9), and yes bestie, it's from the Kernel API Manual β she's got a very specific job and she's gonna do it. π
πΈ NAME πΈ
find_tool_events β search for the pressence (that's the page's spelling, iykyk) of tool events in metric_list. Think of it like a vibe check for tool events, except the guest list is metric_list. π
β¨ SYNOPSIS β¨
void find_tool_events (const struct list_head *metric_list , bool
tool_events[TOOL_PMU__EVENT_MAX] );
That's a void return, so there's no return value to catch β periodt. π
π ARGUMENTS π
metric_listβ the list you're taking metrics from. This is the source pile, bestie. π«Άtool_eventsβ an array offalsevalues. The indices that correspond to tool events get set totrueif that tool event is found. So it's a little treasure map of trues and falses. π
π SEE ALSO π
the kernel file ./tools/perf/util/metricgroup.c and the whole friend group:
setup_metric_events(9)resolve_metric(9)__add_metric(9)metric_list_cmp(9)default_metricgroup_cmp(9)metricgroup__add_metric(9)metricgroup__add_metric_list(9)build_combined_expr_ctx(9)parse_ids(9)
okay that's the whole page bestie β signed off from ./tools/perf/util, dated October 2026, and she ate. πβ¨π
π¦ 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