Re: [PATCH v9 4/4] nmi_backtrace: generate one-line reports for idle cpus

From: Petr Mladek
Date: Tue Aug 30 2016 - 11:46:55 EST


On Mon 2016-08-29 12:12:49, Chris Metcalf wrote:
> When doing an nmi backtrace of many cores, most of which are idle,
> the output is a little overwhelming and very uninformative. Suppress
> messages for cpus that are idling when they are interrupted and just
> emit one line, "NMI backtrace for N skipped: idling at pc 0xNNN".
>
> We do this by grouping all the cpuidle code together into a new
> .cpuidle.text section, and then checking the address of the
> interrupted PC to see if it lies within that section.
>
> This commit suitably tags x86 and tile idle routines, and only
> adds in the minimal framework for other architectures.
>
> Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Tested-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Tested-by: Daniel Thompson <daniel.thompson@xxxxxxxxxx> [arm]
> Signed-off-by: Chris Metcalf <cmetcalf@xxxxxxxxxxxx>

This version works even with my configuration. Feel free to
add

Tested-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr