From 5bd718c8d68a98a1d87ddc400bb1e39e43c8e842 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 6 Apr 2017 22:48:19 +0100 Subject: tools/intel_error_decode: Add support for user specified bo See EXEC_OBJECT_CAPTURE. Signed-off-by: Chris Wilson --- tools/intel_error_decode.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'tools/intel_error_decode.c') 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); -- cgit v1.2.3