evsel__read_on_cpu(9)
β¨ evsel__read_on_cpu(9) β¨
okay so bestie, this one is from the Kernel API Manual, and it's literally about reading out the results on a CPU and thread. lowkey short page, highkey useful. let's get into it π«Ά
π NAME π
evsel__read_on_cpu β read out the results on a CPU and thread, periodt π
π¦ SYNOPSIS π¦
int evsel__read_on_cpu (struct evsel *evsel , int cpu_map_idx , int thread );
that's the whole signature, no cap. it returns an int, and the args are exactly evsel, cpu_map_idx, and thread. copy it character-for-character if you're typing it out, bestie π
π ARGUMENTS π
evselβ the original says-- undescribed --and honestly the doc is leaving us on read here πcpu_map_idxβ also-- undescribed --, not me having to report that πthreadβ same energy:-- undescribed --π
yes bestie, all three are literally listed as undescribed in this section. the DESCRIPTION is where the plot thickens β¨
π₯ DESCRIPTION π₯
okay so the description comes through and gives us the deets:
evselβ event selector to read value πcpu_map_idxβ CPU of interest π₯οΈthreadβ thread of interest π§΅
that's the vibe: you got your event selector, you got the CPU you care about, and you got the thread you care about. iconic, concise, no notes πΈ
π SEE ALSO π
the kernel file ./tools/perf/util/evsel.h is main character energy here, and you should also peek at:
iykyk, go read those next π
final cute sign-off: this lil page lives under ./tools/perf/util, dated October 2026, and it's the evsel__read_on_cpu(9) manual page. bye bestie, slay 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