__perf_evli...r_each_entry(9)
π __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β alist_headinstance to iterate π«Ά like, this is the thing you're walking through, the main character of the operation.evselβ thestruct perf_evseliterator π 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:
__perf_evlist__for_each_entry_reverse(9)perf_evlist__for_each_entry_reverse(9)__perf_evlist__for_each_entry_safe(9)perf_evlist__for_each_entry_safe(9)
π 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
- 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