STRUCT DRM_V3D_PERFMON_GET_COUNTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct drm_v3d_perfmon_get_counter β€” NAME

okay so bestie, this is the manual page for struct drm_v3d_perfmon_get_counter, and like... it's literally the ioctl you use to get the description of a performance counter. that's the whole vibe. ✨


πŸŽ€ SYNOPSIS

like, here's the struct, exactly as it lives, no cap:

struct drm_v3d_perfmon_get_counter {
    __u8 counter;
    __u8 name[DRM_V3D_PERFCNT_MAX_NAME];
    __u8 category[DRM_V3D_PERFCNT_MAX_CATEGORY];
    __u8 description[DRM_V3D_PERFCNT_MAX_DESCRIPTION];
    __u8 reserved[7];
 };

she's got a counter field, three arrays β€” name, category, description, all sized by their own DRM_V3D_PERFCNT_MAX_* macros β€” and a lil reserved[7] at the end doing absolutely nothing (we stan a reserved queen). 🫢


πŸ‘― Members

bestie this section is, like, genuinely empty in the original. no members described, nothing. so i'm not gonna invent any, i'm just gonna tell you it's blank πŸ’€


🌸 Description

okay so here's the tea: userspace needs to retrieve information about the performance counters that are available. that's it, that's the whole reason this exists. πŸ¦‹

so this IOCTL is the one that lets users get information about a performance counter β€” namely its name, its category, and its description. three-for-one deal, slay. πŸ‘‘


πŸ”₯ SEE ALSO

the kernel file ./include/uapi/drm/v3d_drm.h and every sibling struct in the braincell group chat:

  • 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_set_global(9)

and that's the whole page bestie, no notes, go read the header file πŸ’–

mwah, bye!! πŸŽ€βœ¨ this lil number lives in ./include/uapi/drm, dated October 2026, and it's filed under the very dramatic name struct drm_v..._get_counter(9) β€” yeah the title got truncated, she's mysterious like that πŸ’… periodt πŸ¦‹

πŸ“¦ where this page comes from