__perf_evli...ntry_reverse(9)
πΈ __perf_evli...ntry_reverse β Kernel API Manual β¨
okay bestie, before we even start: yes, the header totally got cut off mid-word (it's __perf_evli...ntry_reverse(9) up there, the kernel manual's just being dramatic π
). This is a page from the Kernel API Manual, and it's lowkey a tiny one β but it's cute and you're gonna slay it. π«Ά
β¨ NAME β¨
__perf_evlist__for_each_entry_reverse β iterate thru all the evsels in reverse order π
like, it walks the whole list of evsels but backwards. main character energy: last one first, no cap. π
π SYNOPSIS π
__perf_evlist__for_each_entry_reverse (list , evsel );
that's it. two args, one macro, zero stress. π§
π¦ ARGUMENTS π¦
listβ alist_headinstance to iterate. π this is the thing you're walking through, bestie.evselβ astruct evseliterator. β this is your little cursor buddy, going backwards through the whole thing.
π SEE ALSO π
- Kernel file
./tools/lib/perf/include/internal/evlist.hβ go read the source, iykyk π __perf_evlist__for_each_entry(9)β the forwards version, if you're feeling β¨normalβ¨perf_evlist__for_each_entry_reverse(9)β reverse again, but the other flavor__perf_evlist__for_each_entry_safe(9)β the safe one, for when you're out here deleting stuff mid-loop πperf_evlist__for_each_entry_safe(9)β and its non-underscore sibling
fr fr, if you're touching entries while iterating, go check the _safe ones β the plain ones are giving "I will absolutely explode" π
and that's the whole page, bestie. go be iconic with your reverse iteration ππ¦π
that was ./tools/lib/perf/include/internal, October 2026 β mwah, kiss kiss, slay, periodt πβ¨
π¦ 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