summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDoug Chapman <doug.chapman@hp.com>2009-01-15 10:38:56 -0800
committerTony Luck <tony.luck@intel.com>2009-01-15 10:38:56 -0800
commit88fc241f54459ac3d86c5e13b449730199f66061 (patch)
treed8148e145e9252b76b12b8d466ff3ecbfa4222ea /kernel
parent0773a6cf673316440999752e23f8c3d4f85e48b9 (diff)
downloadop-kernel-dev-88fc241f54459ac3d86c5e13b449730199f66061.zip
op-kernel-dev-88fc241f54459ac3d86c5e13b449730199f66061.tar.gz
[IA64] dump stack on kernel unaligned warnings
Often the cause of kernel unaligned access warnings is not obvious from just the ip displayed in the warning. This adds the option via proc to dump the stack in addition to the warning. The default is off (just display the 1 line warning). To enable the stack to be shown: echo 1 > /proc/sys/kernel/unaligned-dump-stack Signed-off-by: Doug Chapman <doug.chapman@hp.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sysctl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 3e38b74..368d163 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -144,6 +144,7 @@ extern int acct_parm[];
#ifdef CONFIG_IA64
extern int no_unaligned_warning;
+extern int unaligned_dump_stack;
#endif
#ifdef CONFIG_RT_MUTEXES
@@ -781,6 +782,14 @@ static struct ctl_table kern_table[] = {
.mode = 0644,
.proc_handler = &proc_dointvec,
},
+ {
+ .ctl_name = CTL_UNNUMBERED,
+ .procname = "unaligned-dump-stack",
+ .data = &unaligned_dump_stack,
+ .maxlen = sizeof (int),
+ .mode = 0644,
+ .proc_handler = &proc_dointvec,
+ },
#endif
#ifdef CONFIG_DETECT_SOFTLOCKUP
{
OpenPOWER on IntegriCloud