]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:27 +0000 (08:35 +0200)
commitbe8e97a6b5f565a8636787934dca8e1a0eacb600
tree37fc6ed02a18499a4a02548bd5b4af8561c54f87
parent140b361c6ac14976fd7b1d5a0fd21c2e9da3ae61
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