__perf_evli...r_each_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __perf_evli...r_each_entry(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie πŸŽ€ β€” yes the title is literally __perf_evli...r_each_entry(9) and yes it's truncated like that, that's just how it's printed, don't come for me. this whole page is about one little loop macro and honestly? she's iconic for it.


✨ NAME ✨

__perf_evlist__for_each_entry β€” iterate thru all the evsels πŸ’…


🌸 SYNOPSIS 🌸

__perf_evlist__for_each_entry (list , evsel );

that's the whole vibe. two things go in, the loop does its thing. periodt. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • list β€” a list_head instance to iterate 🫢 like, this is the thing you're walking through, the main character of the operation.
  • evsel β€” the struct perf_evsel iterator 🌈 this is the one that gets handed each entry as you go, lowkey carrying the whole loop on her back.

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file that has all the lore:

  • ./tools/lib/perf/include/internal/evlist.h

and her sisters, all of them linked, all of them valid, go read them fr fr:

πŸ’€ real talk: the "safe" ones are a whole separate manpage, don't @ me, just go read them if you need them. iykyk.

and that's the page, bestie 🌸 mwah πŸ’‹ β€” brought to you straight out of ./tools/lib/perf/include/internal, dated October 2026, same title on the way out as on the way in __perf_evli...r_each_entry(9) πŸ§šπŸ’œ go iterate something cute today, you got this 🫢✨

πŸ“¦ where this page comes from