STRUCT DRM_PANTHOR_TIMESTAMP_INFO(9)
π NAME π
struct drm_panthor_timestamp_info β the timestamp info struct, aka the glow-up cheat sheet for everything time-y on your GPU. This is a page straight out of the Kernel API Manual, bestie, and it's about to be your new fave.
β¨ SYNOPSIS β¨
okay so here's the whole vibe, literally the entire struct, no cap:
struct drm_panthor_timestamp_info {
__u64 timestamp_frequency;
__u64 current_timestamp;
__u64 timestamp_offset;
__u32 flags;
__u32 duration_nsec;
__u64 cycle_count;
__u64 cpu_timestamp_sec;
__u64 cpu_timestamp_nsec;
};
π MEMBERS π
one field at a time, bestie, we're going through them all π
timestamp_frequencyβ how fast the timestamp timer ticks, fr. Or0if nobody knows. shrug πcurrent_timestampβ the GPU timestamp right now, like live, in this moment, main character energy βtimestamp_offsetβ the offset of the GPU timestamp timer. the little shift it's living with β¨flagsβ a bitmask ofdrm_panthor_timestamp_info_flags.
If it's set to 0, that gets interpreted as: DRM_PANTHOR_TIMESTAMP_GPU | DRM_PANTHOR_TIMESTAMP_GPU_OFFSET | DRM_PANTHOR_TIMESTAMP_FREQ
β οΈ heads up bestie: these next flags are exclusive to each other β only one can be used at a time, no mixing, no blending, periodt:
DRM_PANTHOR_TIMESTAMP_CPU_NONEDRM_PANTHOR_TIMESTAMP_CPU_MONOTONICDRM_PANTHOR_TIMESTAMP_CPU_MONOTONIC_RAW
duration_nsecβ how long the time query took. the duration, bestie β±οΈcycle_countβ the value ofGPU_CYCLE_COUNT. that's it, that's the field π₯cpu_timestamp_secβ the seconds part of the CPU timestamp πcpu_timestamp_nsecβ the nanoseconds part of the CPU timestamp. tiny little sliver of time π§
πΈ DESCRIPTION πΈ
It's a struct that groups up all the queryable info relating to the GPU timestamp. like a little friend group of fields, all hanging out together in one place π«Ά one struct to hold them all, iconic behavior honestly π
π¦ SEE ALSO π¦
the whole extended universe, in order, nothing skipped, iykyk:
Kernel file ./include/uapi/drm/panthor_drm.h Introduction(9), MMIO regions exposed to userspace.(9), IOCTL IDs(9), IOCTL arguments(9), struct drm_panthor_obj_array(9), DRM_PANTHOR_OBJ_ARRAY(9), enum drm_panthor_sync_op_flags(9), struct drm_panthor_sync_op(9), enum drm_panthor_dev_query_type(9), enum drm_panthor_gpu_coherency(9), struct drm_panthor_gpu_info(9), struct drm_panthor_csif_info(9), enum drm_panthor_timestamp_info_flags(9), struct drm_panthor_mmu_info(9), struct drm_panthor_group_priorities_info(9), struct drm_panthor_dev_query(9), struct drm_panthor_vm_create(9), struct drm_panthor_vm_destroy(9), enum drm_panthor_vm_bind_op_flags(9), struct drm_panthor_vm_bind_op(9), enum drm_panthor_vm_bind_flags(9), struct drm_panthor_vm_bind(9), enum drm_panthor_vm_state(9), struct drm_panthor_vm_get_state(9), enum drm_panthor_bo_flags(9), struct drm_panthor_bo_create(9), struct drm_panthor_bo_mmap_offset(9), struct drm_panthor_queue_create(9), enum drm_panthor_group_priority(9), struct drm_panthor_group_create(9), struct drm_panthor_group_destroy(9), struct drm_panthor_queue_submit(9), struct drm_panthor_group_submit(9), enum drm_panthor_group_state_flags(9), struct drm_panthor_group_get_state(9), struct drm_panthor_tiler_heap_create(9), struct drm_panthor_tiler_heap_destroy(9), struct drm_panthor_bo_set_label(9), struct drm_panthor_set_user_mmio_offset(9), enum drm_panthor_bo_sync_op_type(9), struct drm_panthor_bo_sync_op(9), struct drm_panthor_bo_sync(9), enum drm_panthor_bo_extra_flags(9), struct drm_panthor_bo_query_info(9), DRM_IOCTL_PANTHOR(9)
and that's the whole page, bestie!! π this lil drop came from ./include/uapi/drm, dated October 2026 β go read the source, it slays, mwah πβ¨π
π¦ 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