summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2011-08-17 18:31:58 -0500
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:54:02 -0800
commit4e09c510185cb4db2277ce81cce81b7aa06bea45 (patch)
tree58aab6bb6279838d61b5278bb1c1176ed80e8d71 /include/linux
parent0b7503bc0eef1b90c214059f2952539a2b89d8fe (diff)
panic: Add board ID to panic output
At times, it is necessary for boards to provide some additional information as part of panic logs. Provide information on the board hardware as part of panic logs. It is safer to print this information at the very end in case something bad happens as part of the information retrieval itself. To use this, set global mach_panic_string to an appropriate string in the board file. Change-Id: Id12cdda87b0cd2940dd01d52db97e6162f671b4d Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kernel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 350dfb08aee3..1eaf3d81f5c1 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -830,4 +830,8 @@ static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { }
/* OTHER_WRITABLE? Generally considered a bad idea. */ \
BUILD_BUG_ON_ZERO((perms) & 2) + \
(perms))
+
+/* To identify board information in panic logs, set this */
+extern char *mach_panic_string;
+
#endif