__evlist__fo...ntry_reverse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 __evlist__for_each_entry_reverse(9) 🌸

okay bestie, so this is a page from the Kernel API Manual, and the star of the show is __evlist__for_each_entry_reverse πŸ’… she's a macro, she's iconic, and she's about to walk you through all the evsels β€” but backwards, because why be normal when you can be reverse πŸ’€


✨ NAME ✨

__evlist__for_each_entry_reverse β€” iterate thru all the evsels in reverse order πŸ¦‹

like yes, that's literally what she does. no cap.


✨ SYNOPSIS ✨

__evlist__for_each_entry_reverse (list , evsel );

that's the whole vibe, bestie. two args, no drama πŸŽ€


✨ ARGUMENTS ✨

okay so here's what you're feeding her:

  • list β€” a list_head instance to iterate πŸ‘‘ like, this is the thing you're walking through
  • evsel β€” a struct evsel iterator 🌈 this is your little cursor bestie that moves along the way

both of them, together, slaying. periodt.


✨ SEE ALSO ✨

the lore lives in the Kernel file ./tools/perf/util/evlist.h πŸ“ and honestly? there's a whole friend group. go say hi to:

iykyk 🫢 like, that's the whole extended friend group and they're all eating πŸ”₯


lowkey a reminder that this page lives in ./tools/perf/util and is dated October 2026 β€” so when you cite her, cite her right, bestie πŸ˜­πŸ’–

and that's the page!! stay hydrated, read your headers, and iterate responsibly βœ¨πŸ§šπŸ’œ

πŸ“¦ where this page comes from