__perf_evsel__calc_id_pos(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ __perf_evsel__calc_id_pos(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual corner of the group chat πŸ’… this page is all about __perf_evsel__calc_id_pos, and it's giving β€œfind the event id's spot in the sample array” energy. no cap.


✨ NAME ✨

__perf_evsel__calc_id_pos β€” calculate id_pos. periodt πŸ’–

🌸 SYNOPSIS 🌸

int __perf_evsel__calc_id_pos (u64 sample_type );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sample_type β€” sample type. that's the one and only argument, bestie 🫢

πŸ’– DESCRIPTION πŸ’–

this function returns the position of the event id in a sample event. the event id is PERF_SAMPLE_ID or PERF_SAMPLE_IDENTIFIER, and the sample event is i.e. the array of struct perf_record_sample. literally an index-hunt main character moment ✨

πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’Œ cute sign-off bestie: source/version is ./tools/perf/util, date is October 2026, page is __perf_evsel__calc_id_pos(9). go slay that sample event πŸ’œ

πŸ“¦ where this page comes from