Re: [PATCH 07/15] ARM: etm: Return the entire trace buffer if it isempty after reset

From: Linus Walleij
Date: Thu Jun 28 2012 - 11:57:46 EST


On Thu, Jun 21, 2012 at 12:47 AM, John Stultz <john.stultz@xxxxxxxxxx> wrote:

> From: Arve Hjønnevåg <arve@xxxxxxxxxxx>
>
> 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.
>
> CC: Russell King <linux@xxxxxxxxxxxxxxxx>
> CC: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx>
> CC: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>
> Acked-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>
> Signed-off-by: Arve Hjønnevåg <arve@xxxxxxxxxxx>
> Signed-off-by: John Stultz <john.stultz@xxxxxxxxxx>

This looks *very* useful.
Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/