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)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:33 +0000 (13:40 -0700)
commit90d995761f953cb7d53afa1a3651f451c5c85b46
tree1a60160561b5a91213b5600e77a741d5bc7e539c
parent848bc34c4104b72a8ab8b152ceae6eaadd27113d
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