This repository has been archived by the owner on Dec 14, 2022. It is now read-only.
forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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/[email protected] Signed-off-by: Chris Metcalf <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Daniel Thompson <[email protected]> [arm] Tested-by: Petr Mladek <[email protected]> Cc: Aaron Tomlin <[email protected]> Cc: Peter Zijlstra (Intel) <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Cc: Russell King <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
1 parent
511f838
commit 6727ad9
Showing
49 changed files
with
93 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ SECTIONS | |
HEAD_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
*(.fixup) | ||
*(.gnu.warning) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,7 @@ SECTIONS | |
_text = .; | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
*(.fixup) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,6 +98,7 @@ SECTIONS | |
IRQENTRY_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
*(.gnu.warning) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,6 +122,7 @@ SECTIONS | |
ENTRY_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
HYPERVISOR_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ SECTIONS | |
KPROBES_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
*(.fixup) | ||
*(.gnu.warning) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,7 @@ SECTIONS | |
_stext = .; | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
IRQENTRY_TEXT | ||
SOFTIRQENTRY_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ SECTIONS | |
HEAD_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
*(.fixup) | ||
*(.text.__*) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ SECTIONS | |
_text = .; | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
*(.fixup) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ SECTIONS | |
HEAD_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
*(.fixup) | ||
*(.gnu.warning) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ SECTIONS { | |
HEAD_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
*(.fixup) | ||
. = ALIGN(16); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ SECTIONS | |
HEAD_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
*(.fixup) | ||
*(.gnu.warning) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ SECTIONS | |
HEAD_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
*(.fixup) | ||
*(.gnu.warning) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ SECTIONS | |
.text : { | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
IRQENTRY_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ SECTIONS { | |
EXIT_TEXT | ||
EXIT_CALL | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
IRQENTRY_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ SECTIONS | |
.text : { | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
IRQENTRY_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ SECTIONS | |
HEAD_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
*(.fixup) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ SECTIONS | |
.text : { | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
IRQENTRY_TEXT | ||
SOFTIRQENTRY_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ SECTIONS | |
_stext = .; | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
IRQENTRY_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ SECTIONS | |
HEAD_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
IRQENTRY_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ SECTIONS | |
TEXT_TEXT | ||
EXTRA_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
IRQENTRY_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ SECTIONS | |
HEAD_TEXT | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
IRQENTRY_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ SECTIONS | |
.text : { /* Real text segment */ | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
|
||
*(.fixup) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,6 +97,7 @@ SECTIONS | |
_stext = .; | ||
TEXT_TEXT | ||
SCHED_TEXT | ||
CPUIDLE_TEXT | ||
LOCK_TEXT | ||
KPROBES_TEXT | ||
ENTRY_TEXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.