drm_sched_e...add_gpu_time(9)
π drm_sched_e...add_gpu_time(9) π
okay bestie, so we're in the Kernel API Manual and today's main character is a function with a name so long it needs a snack break in the middle (drm_sched_e... β yes that ellipsis is literally part of it, iykyk). Buckle up π
β¨ NAME β¨
drm_sched_entity_stats_job_add_gpu_time β the one that accounts a job's execution time to its entity. it's giving "timekeeper energy" fr fr π°οΈ
πΈ SYNOPSIS πΈ
ktime_t drm_sched_entity_stats_job_add_gpu_time (struct drm_sched_job *job );
look at that signature. ktime_t in, ktime_t out, one struct drm_sched_job *job because we keep it simple and slay π
π¦ ARGUMENTS π¦
jobβ the scheduler job we're accounting for. that's it. that's the whole argument. she's low maintenance π
π§ DESCRIPTION π§
so basically, this function accounts the execution time of job to its respective entity stats object. like, the job's time gets filed under the right entity's little stats bookkeeping situation. no cap, that's the whole vibe β the entity gets the credit for the time its job spent doing stuff β¨π
π RETURN π
returns the job's real duration in micro seconds β as a ktime_t, which is iconic of it. so yes, you get the actual number, in microseconds, no fake numbers here, periodt π«Ά
π SEE ALSO π
the kernel file that lives here, bestie:
./drivers/gpu/drm/scheduler/sched_entity.c
and the whole friend group (all (9) because they're kernel-internal queens π):
drm_sched_entity_stats_release(9)drm_sched_entity_stats_new(9)drm_sched_entity_init(9)drm_sched_entity_modify_sched(9)drm_sched_entity_error(9)drm_sched_entity_kill(9)drm_sched_entity_flush(9)drm_sched_entity_fini(9)drm_sched_entity_destroy(9)drm_sched_entity_set_priority(9)drm_sched_entity_push_job(9)
π«Ά that's the whole page, no filler, no fluff β every flag-shaped detail intact because we do not skip the boring parts in this group chat π
and that's a wrap, bestie π this lil' page came straight out of ./drivers/gpu/drm/scheduler, dated October 2026, and she's filed under drm_sched_e...add_gpu_time(9) in the Kernel API Manual. 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