ARM: etm: Return the entire trace buffer if it is empty after reset
authorArve Hjønnevåg <arve@android.com>
Sat, 5 Feb 2011 06:38:14 +0000 (22:38 -0800)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:08:06 +0000 (12:08 -0800)
commit850d0ffd91e6d855562ba86d894b2b9093fd730f
tree1969b62d9019c29f266fcc2f85ca0b576dfbb994
parent26c05e64b478994431de57f4832784f06aa9df7c
ARM: etm: Return the entire trace buffer if it is empty after reset

On some SOCs the read and write pointer are reset when the chip
resets, but the trace buffer content is preserved. If the status
bits indicates that the buffer is empty and we have never started
tracing, assume the buffer is full instead. This can be useful
if the system rebooted from a watchdog reset.

Change-Id: Iaf21c2c329c6059004ee1d38e3dfff66d7d28029
Signed-off-by: Arve Hjønnevåg <arve@android.com>
arch/arm/kernel/etm.c