diff options
author | Andi Kleen <ak@suse.de> | 2006-06-26 07:56:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 13:48:16 -0400 |
commit | bebfa1013eee1d91b3242e5801cc8fbdfaf148ec (patch) | |
tree | d1abf916c29bbb5c312717f57798987268aff9a9 /kernel | |
parent | f201611fcecdfa825471dc425ee007997228fae4 (diff) |
[PATCH] x86_64: Add compat_printk and sysctl to turn off compat layer warnings
Sometimes e.g. with crashme the compat layer warnings can be noisy.
Add a way to turn them off by gating all output through compat_printk
that checks a global sysctl. The default is not changed.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sysctl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 2c0e65819448..f1a4eb1a655e 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -73,6 +73,7 @@ extern int printk_ratelimit_burst; | |||
73 | extern int pid_max_min, pid_max_max; | 73 | extern int pid_max_min, pid_max_max; |
74 | extern int sysctl_drop_caches; | 74 | extern int sysctl_drop_caches; |
75 | extern int percpu_pagelist_fraction; | 75 | extern int percpu_pagelist_fraction; |
76 | extern int compat_log; | ||
76 | 77 | ||
77 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) | 78 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) |
78 | int unknown_nmi_panic; | 79 | int unknown_nmi_panic; |
@@ -677,6 +678,16 @@ static ctl_table kern_table[] = { | |||
677 | .proc_handler = &proc_dointvec, | 678 | .proc_handler = &proc_dointvec, |
678 | }, | 679 | }, |
679 | #endif | 680 | #endif |
681 | #ifdef CONFIG_COMPAT | ||
682 | { | ||
683 | .ctl_name = KERN_COMPAT_LOG, | ||
684 | .procname = "compat-log", | ||
685 | .data = &compat_log, | ||
686 | .maxlen = sizeof (int), | ||
687 | .mode = 0644, | ||
688 | .proc_handler = &proc_dointvec, | ||
689 | }, | ||
690 | #endif | ||
680 | { .ctl_name = 0 } | 691 | { .ctl_name = 0 } |
681 | }; | 692 | }; |
682 | 693 | ||