evsel__is_function_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… evsel__is_function_event β€” a Kernel API Manual moment πŸŽ€

ok so this is one of those tiny little helper functions from the Kernel API Manual, and honestly? she's short, she's sweet, and she does exactly one (1) thing. main character energy for a boolean. let's get into it ✨


🌸 NAME 🌸

evsel__is_function_event β€” tells you whether the evsel you handed her is a function trace event. that's it. that's the whole gig. 🫢


✨ SYNOPSIS ✨

bool evsel__is_function_event (struct evsel *evsel );

yeah bestie, that's the whole signature. one argument, returns a bool, no drama, no cap. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • evsel β€” okay so the manpage literally just says -- undescribed -- here 😭 like girl... nothing?? no notes?? but don't stress, the DESCRIPTION section comes through and tells you it's the evsel selector to be tested. so it IS described, just... one section later. iconic of her honestly. πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

  • evsel β€” the evsel selector you want tested. hand it over and let her do her thing. πŸŽ€

Return true if event is function trace event. that's the vibe check: true = yes, it's a function trace event, false = nope, not one. simple as that, fr fr. ⭐


πŸ”₯ SEE ALSO πŸ”₯

all of these live in the kernel file ./tools/perf/util/evsel.c β€” go say hi to her siblings, they're all in there together πŸ§šπŸ’œ


🌈 a lil sign-off 🌈

this page comes to you from ./tools/perf/util, dated October 2026, and it is literally the Kernel API Manual. short page, big slay. go test that evsel, bestie πŸ’–πŸŒΈπŸ‘‘

mwah πŸ’‹

πŸ“¦ where this page comes from