xe_gt_stats_clear(9)
π xe_gt_stats_clear π
okay so bestie, welcome to the xe_gt_stats_clear(9) page β it's a kernel API manual, it lives in section 9, and it's literally the "make the stats go poof" function. it's giving tiny-but-powerful, no cap β¨
β¨ SYNOPSIS β¨
void xe_gt_stats_clear (struct xe_gt *gt );
that's it. that's the whole vibe check. void return, one arg, done π
πΈ ARGUMENTS πΈ
gtβ the GT structure π«Ά like, the actual GT whose stats we're about to wipe. hand it over and it gets cleared.
π DESCRIPTION π
so what it does is clear (zero) all available GT stats. all of them. every single one. zeroed out. gone. iconic behavior honestly π
but here's the β οΈ tea β οΈ and you need to hear it:
if the stats are being updated while this function is running, the results may be unpredictable. like, genuinely unpredictable. don't do that. π
so this function is intended to be called on an idle GPU β idle GPU only, bestie, that's the whole assignment. it's not a "call it whenever, it'll be fine" situation, fr fr π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_gt_stats.cπ₯ - Xe GT Statistics(9)
xe_gt_stats_init(9)xe_gt_stats_incr(9)xe_gt_stats_print_info(9)
the whole stats friend group honestly, they all show up together π§
and that's the page!! this one came out of ./drivers/gpu/drm/xe, dated October 2026 β so like, future vibes only πβ¨ slay, go clear some stats (on an idle GPU, please, i'm begging π)
π¦ 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