evsel__read_on_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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