msm_perfcntr_counter_base(9)
π msm_perfcntr_counter_base(9) β¨
okay so bestie, welcome to the Kernel API Manual π β today's main character is msm_perfcntr_counter_base, and honestly? she's lowkey iconic.
πΈ NAME πΈ
msm_perfcntr_counter_base β get idx of the first counter in group π«Ά
β SYNOPSIS β
uint32_t msm_perfcntr_counter_base (const struct msm_perfcntr_stream
*stream , uint32_t group_idx );
like literally that's the whole vibe check. two args, one uint32_t coming back at you π
π¦ ARGUMENTS π¦
streamβ the global perfcntr stream π (the big one, the main character)group_idxβ the index of the counter group π’ (which group we're talking about, bestie)
β¨ DESCRIPTION β¨
okay so here's the tea β: for global counter collection, the counters get allocated from the end (last counter) π β meanwhile UMD allocates them from the start (0..N-1) π
.
the way that matters: since UMD always allocated them from the start, this also minimizes the chance of conflict when you're using an old UMD which predates the PERFCNTR_CONFIG ioctl π. no cap, that's the whole reason.
and what does she return? the index of the first counter to use π₯. it's an index into msm_perfcntr_group::counters[] β remember that, it's important fr fr.
ngl, the return value is the moment. index of first counter to use. periodt. π
π SEE ALSO π
- the kernel file literally sitting at
./drivers/gpu/drm/msm/msm_perfcntr.cπ§ msm_perfcntr_group_idx(9)β her bestie, go say hi π
and that's the page, bestie ππ β brought to you from ./drivers/gpu/drm/msm, all the way from October 2026. slay, see you in the next manpage β¨π«Ά
π¦ 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