perf_evlist...ntry_reverse(9)
π perf_evlist__for_each_entry_reverse(9) β like, the whole Kernel API Manual vibe β¨
okay so bestie, real talk: this is a page straight outta the Kernel API Manual, and it's about one very specific little macro. No cap, it's a short one, but she's iconic in her own quiet way. π
πΈ NAME πΈ
perf_evlist__for_each_entry_reverse β literally iterates thru all the evsels, but backwards. reverse order. like when you scroll the group chat from the bottom up because you missed everything. π¦
β¨ SYNOPSIS β¨
perf_evlist__for_each_entry_reverse (evlist , evsel );
that's it. that's the whole call. she's compact, she's efficient, she said what she said. π
π«Ά ARGUMENTS π«Ά
evlistβ the evlist instance you're gonna iterate over. your main character, your starting point, the whole squad. πevselβ yourstruct evseliterator. this is the lil variable that walks the walk, one entry at a time (backwards, remember π).
π₯ SEE ALSO π₯
- the kernel file
./tools/lib/perf/include/internal/evlist.hβ go read the source, it's giving lore β¨ __perf_evlist__for_each_entry(9)__perf_evlist__for_each_entry_reverse(9)__perf_evlist__for_each_entry_safe(9)perf_evlist__for_each_entry_safe(9)
like yes, there's a whole family of these. the double-underscore ones, the _safe onesβ¦ collect them all, iykyk π§
ngl if you need forwards instead of reverse, that's a different page bestie β this one only does the backwards walk. no guessing, fr fr. π
and that's the whole thing! source/version: ./tools/lib/perf/include/internal, dated October 2026, and she's filed under perf_evlist...ntry_reverse(9) in the Kernel API Manual. slay, go iterate responsibly ππβ
π¦ 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