__perf_evsel__calc_id_pos(9)
π __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 π
- Kernel file
./tools/perf/util/evsel.c __perf_evsel__calc_is_pos(9)evsel__is_function_event(9)evsel__clone(9)evsel__is_hybrid(9)
π 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
- 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