summaryrefslogtreecommitdiff
path: root/tools/intel_error_decode.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-04-06 22:48:19 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-04-06 22:52:23 +0100
commit5bd718c8d68a98a1d87ddc400bb1e39e43c8e842 (patch)
tree64286d1d3cdb8e577f3684d80c9fa856589f7bb7 /tools/intel_error_decode.c
parentbceec7e1d8a160226b783c6344eae8cbf4ece144 (diff)
tools/intel_error_decode: Add support for user specified bo
See EXEC_OBJECT_CAPTURE. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools/intel_error_decode.c')
-rw-r--r--tools/intel_error_decode.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c
index 004b6c81..363cd902 100644
--- a/tools/intel_error_decode.c
+++ b/tools/intel_error_decode.c
@@ -651,6 +651,27 @@ read_data_file(FILE *file)
buffer_name = "HW Context";
continue;
}
+
+ matched = sscanf(dashes, "--- user = 0x%08x %08x\n",
+ &hi, &lo);
+ if (matched > 0) {
+ new_gtt_offset = hi;
+ if (matched == 2) {
+ new_gtt_offset <<= 32;
+ new_gtt_offset |= lo;
+ }
+
+ decode(decode_ctx,
+ buffer_name, ring_name,
+ gtt_offset, head_offset,
+ data, &count);
+ gtt_offset = new_gtt_offset;
+ head_offset = -1;
+ free(ring_name);
+ ring_name = new_ring_name;
+ buffer_name = "user";
+ continue;
+ }
}
matched = sscanf(line, "%08x : %08x", &offset, &value);