STRUCT DRM_V3D_PERFMON_SET_GLOBAL(9)
π NAME π
ok so bestie, welcome to struct drm_v3d_perfmon_set_global β this is the ioctl you use to define a global performance monitor. that's it, that's the whole vibe β¨
oh and hey, you're reading the Kernel API Manual rn β welcome to the group chat π«Ά
β¨ SYNOPSIS β¨
struct drm_v3d_perfmon_set_global {
__u32 flags;
__u32 id;
};
bestie look at it. two little fields. immaculate. no cap π
πΈ Members πΈ
ok so this section on the original page is literally just the heading and nothing else β no members listed, no notes, just vibes and open space π i'm not gonna make stuff up for you, so consider this your official "the page says nothing here" moment. go read the DESCRIPTION, that's where the actual tea is π
π DESCRIPTION π
ok so the tea: once you define a global performance monitor, it gets used for all jobs. every single one. main character monitor energy fr fr π
and here's the part you actually need to remember, bestie, because it's a real gotcha: if a global performance monitor is defined, then jobs that bring their own self-defined performance monitor won't be allowed. not "discouraged", not "mildly frowned upon" β not allowed. periodt. π
so like... pick one? global monitor OR per-job self-defined monitors. the kernel is not doing both for you and it is not asking twice π«Ά
π₯ SEE ALSO π₯
go be nosy, the whole family is here:
- the kernel file
./include/uapi/drm/v3d_drm.hβ that's where the source of truth lives struct drm_v3d_multi_sync(9)struct drm_v3d_submit_cl(9)struct drm_v3d_wait_bo(9)struct drm_v3d_create_bo(9)struct drm_v3d_mmap_bo(9)struct drm_v3d_indirect_csd(9)struct drm_v3d_timestamp_query(9)struct drm_v3d_reset_timestamp_query(9)struct drm_v3d_copy_timestamp_query(9)struct drm_v3d_reset_performance_query(9)struct drm_v3d_copy_performance_query(9)struct drm_v3d_perfmon_get_counter(9)
like genuinely obsessed with how long that list is, it's giving "linked in every direction" π
aaaand that's the whole page, bestie, you ate that π one last lil sign-off: this one ships from ./include/uapi/drm, dated October 2026, and it goes by the name struct drm_v3d_perfmon_set_global(9) πβ¨ byeee π
π¦ 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