remarkable-linux/arch/sh/kernel
Chris Metcalf 6727ad9e20 nmi_backtrace: generate one-line reports for idle cpus
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.

Link: http://lkml.kernel.org/r/1472487169-14923-5-git-send-email-cmetcalf@mellanox.com
Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Daniel Thompson <daniel.thompson@linaro.org> [arm]
Tested-by: Petr Mladek <pmladek@suse.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-10-07 18:46:30 -07:00
..
cpu sh/SH-X3 SMP: Convert to hotplug state machine 2016-09-19 21:44:27 +02:00
vsyscall vdso: make arch_setup_additional_pages wait for mmap_sem for write killable 2016-05-23 17:04:14 -07:00
.gitignore
asm-offsets.c
crash_dump.c
debugtraps.S
disassemble.c
dma-nommu.c dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
dumpstack.c
dwarf.c sh: Delete unnecessary checks before the function call "mempool_destroy" 2016-08-05 03:29:42 +00:00
entry-common.S sh: provide unified syscall trap compatible with all SH models 2016-03-17 19:46:06 +00:00
ftrace.c This release cycle is rather small. Just a few fixes to tracing. 2016-10-06 11:48:41 -07:00
head_32.S sh: fix build regression with CONFIG_OF && !CONFIG_OF_FLATTREE 2016-07-31 03:33:32 +00:00
head_64.S
hw_breakpoint.c
idle.c
io.c
io_trapped.c
iomap.c
ioport.c
irq.c sh/irq: Use access helper irq_data_get_affinity_mask() 2015-07-29 10:08:08 +02:00
irq_32.c
irq_64.c
kdebugfs.c
kgdb.c
kprobes.c
machine_kexec.c
machvec.c
Makefile sh: remove arch-specific localtimer and use generic one 2016-03-17 19:46:09 +00:00
module.c
nmi_debug.c
perf_callchain.c perf core: Pass max stack as a perf_callchain_entry context 2016-05-16 23:11:50 -03:00
perf_event.c sh/perf: Convert the hotplug notifiers to state machine callbacks 2016-07-14 09:34:39 +02:00
process.c
process_32.c exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
process_64.c exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
ptrace.c
ptrace_32.c
ptrace_64.c
reboot.c
relocate_kernel.S
return_address.c
setup.c sh: fix build regression with CONFIG_OF && !CONFIG_OF_FLATTREE 2016-07-31 03:33:32 +00:00
sh_bios.c
sh_ksyms_32.c sh: New gcc support 2016-03-17 19:45:44 +00:00
sh_ksyms_64.c
signal_32.c
signal_64.c
smp.c arch/sh changes for 4.6. They include minor cleanups, a fix for a 2016-03-19 16:09:43 -07:00
stacktrace.c
swsusp.c
sys_sh.c
sys_sh32.c
syscalls_32.S sh: system call wire up 2016-08-05 03:29:44 +00:00
syscalls_64.S sh: system call wire up 2016-08-05 03:29:44 +00:00
time.c These changes improve device tree support (including builtin DTB), add 2016-08-06 09:00:05 -04:00
topology.c sh: fix function signature of cpu_coregroup_mask to match pointer type 2016-03-30 00:47:49 +00:00
traps.c
traps_32.c
traps_64.c arch/sh/kernel/traps_64.c: use sign_extend64() for sign extension 2015-11-06 17:50:42 -08:00
unwinder.c
vmlinux.lds.S nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00