mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-18 13:26:30 +00:00
decode: Handle errors during parsing.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
db91f220da
commit
14618620cc
@ -231,23 +231,23 @@ read_data_file (const char * filename)
|
||||
printf("%s", line);
|
||||
|
||||
matched = sscanf (line, "PCI ID: 0x%04x\n", ®);
|
||||
if (matched)
|
||||
if (matched == 1)
|
||||
devid = reg;
|
||||
|
||||
matched = sscanf (line, " ACTHD: 0x%08x\n", ®);
|
||||
if (matched)
|
||||
if (matched == 1)
|
||||
intel_decode_context_set_head_tail(reg, 0xffffffff);
|
||||
|
||||
matched = sscanf (line, " PGTBL_ER: 0x%08x\n", ®);
|
||||
if (matched && reg)
|
||||
if (matched == 1 && reg)
|
||||
print_pgtbl_err(reg, devid);
|
||||
|
||||
matched = sscanf (line, " INSTDONE: 0x%08x\n", ®);
|
||||
if (matched)
|
||||
if (matched == 1)
|
||||
print_instdone (devid, reg, -1);
|
||||
|
||||
matched = sscanf (line, " INSTDONE1: 0x%08x\n", ®);
|
||||
if (matched)
|
||||
if (matched == 1)
|
||||
print_instdone (devid, -1, reg);
|
||||
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user