STRUCT XE_DEVCOREDUMP_SNAPSHOT(9)
๐ struct xe_devcoredump_snapshot(9) ๐
okay so this is a Kernel API Manual page, and it's literally the crash-snapshot struct for Xe โ main character energy for when the GPU has a bad day ๐ญ. it's giving "we captured the crash tea and saved it for later," and we're gonna walk through every single member, no cap. ๐ซถ
โจ NAME โจ
struct xe_devcoredump_snapshot โ Crash snapshot. that's the whole vibe: the struct that holds the crash snapshot, bestie ๐
๐ SYNOPSIS ๐
here's the full struct, character-for-character, because we do not play about code:
struct xe_devcoredump_snapshot {
ktime_t snapshot_time;
ktime_t boot_time;
char process_name[TASK_COMM_LEN];
pid_t pid;
char *reason;
struct xe_gt *gt;
struct work_struct work;
struct {
struct xe_guc_ct_snapshot *ct;
struct xe_guc_log_snapshot *log;
} guc;
struct xe_guc_submit_exec_queue_snapshot *ge;
struct xe_hw_engine_snapshot *hwe[XE_NUM_HW_ENGINES];
struct xe_sched_job_snapshot *job;
struct __guc_capture_parsed_output *matched_node;
struct xe_vm_snapshot *vm;
struct {
ssize_t size;
ssize_t chunk_position;
char *buffer;
} read;
};
๐ง Members ๐ง
snapshot_timeโ Time of this capture. โฑ๏ธboot_timeโ Relative boot time so the uptime can be calculated. ๐ฅพprocess_nameโ Name of process that triggered this gpu hang. ๐ปpidโ Process id of process that triggered this gpu hang. ๐ขreasonโ The reason the coredump was triggered. ๐จgtโ Affected GT, used by forcewake for delayed capture. ๐ฏworkโ Workqueue for deferred capture outside of signaling context. ๐ ๏ธgucโ GuC snapshots. ๐ฎguc.ctโ GuC CT snapshot. ๐ธguc.logโ GuC log snapshot. ๐
geโ GuC Submission Engine snapshot. ๐hweโ HW Engine snapshot array. ๐งฉjobโ Snapshot of job state. ๐ผmatched_nodeโ The matched capture node for timedout job โ this single-node tracker works because devcoredump will always only produce one hw-engine capture per devcoredump event. ๐vmโ Snapshot of VM state. ๐งreadโ devcoredump in human readable format. ๐read.sizeโ size of devcoredump in human readable format. ๐read.chunk_positionโ position of devcoredump chunk. ๐read.bufferโ buffer of devcoredump in human readable format. ๐งบ
๐ Description ๐
okay so this struct contains all the useful information that gets quickly captured at the time of the crash. so, any subsequent reads of the coredump points to a data that shows the state of the GPU of when the issue has happened. literally a time capsule for the GPU's bad moment, periodt. ๐โจ
๐ฅ SEE ALSO ๐ฅ
- Kernel file
./drivers/gpu/drm/xe/xe_devcoredump_types.h - struct
xe_devcoredump(9)โ don't sleep on it, fr fr ๐
and that's the tea ๐ต โ source/version: ./drivers/gpu/drm/xe ยท date: October 2026. 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