Commit e9e91bf3 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Limit buffer dumping in the snapshot to the current context



In the vast majority of cases the only interesting indirect buffers (IBs)
 to dump in a shapshot are the ones that are in the current context
because they are the ones that probably contributed to the hang. Limit
the IBs that are dumped to the range between the start of context and
the RB read pointer. If the start of context can't be found, then dump
from the start of the ringbuffer dump to read pointer. Also, since
buffers can be reused (though typically not in the same context), use the
most recent parsed size when dumping the IB to make sure we get the right
buffer contents for the most recent usage of said buffer.

Change-Id: Ic0dedbad090156d69b964e229806aa45242de6fd
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 1268f9cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment