STRUCT DRM_V3D_RESET_PERFORMANCE_QUERY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct drm_v3d_reset_performance_query β€” bestie, it's the ioctl extension that lets the CPU job reset performance queries πŸŽ€


πŸ’… SYNOPSIS πŸ’…

struct drm_v3d_reset_performance_query {
    struct drm_v3d_extension base;
    __u64 syncs;
    __u32 count;
    __u32 nperfmons;
    __u64 kperfmon_ids;
 };

okay so that's the whole struct, no cap β€” <purple>base</purple>, <purple>syncs</purple>, <purple>count</purple>, <purple>nperfmons</purple>, <purple>kperfmon_ids</purple>, all copied exactly char-for-char because we do not play with literal code around here πŸ’€


🫢 Members 🫢

literally nothing listed under this heading in the original, bestie β€” the section is there, the members are silent πŸ™ˆ (the fields themselves are all up in the SYNOPSIS, so go look there πŸ’–)


🌸 Description 🌸

So here's the vibe: when an extension DRM_V3D_EXT_ID_CPU_RESET_PERFORMANCE_QUERY is defined, it points to this extension to define a reset performance submission ✨

And what does that CPU job actually do? It resets the performance queries by resetting the values of the performance monitors 🧚 and, on top of that, it will reset the syncobj to reset query availability. two resets, one job, main character energy fr fr πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./include/uapi/drm/v3d_drm.h πŸ‘€
  • 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_copy_performance_query(9)
  • struct drm_v3d_perfmon_get_counter(9)
  • struct drm_v3d_perfmon_set_global(9)

like a whole friend group of structs, and yes you should read all of them, iykyk πŸ¦‹


that's the whole page, periodt πŸ’… sourced from ./include/uapi/drm, dated October 2026, section 9 of the Kernel API Manual β€” mwah, go reset some performance queries, ily πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from