History

parisc: add sysctl file interface panic_on_stackoverflow

The variable sysctl_panic_on_stackoverflow is used in arch/parisc/kernel/irq.c and arch/x86/kernel/irq_32.c, but the sysctl file interface panic_on_stackoverflow only exists on x86. Add sysctl file interface panic_on_stackoverflow for parisc

Xiaoming Ni committed 6 years ago

Commit b6522fa1 parent 3fd84a41 file · +11 −9Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/sysctl.c+11−9
@@ -994,30 +994,32 @@ static struct ctl_table kern_table[] = { · 993 unmodified lines
994 .proc_handler = proc_dointvec,994 .proc_handler = proc_dointvec,
995 },995 },
996#endif996#endif
997#if defined(CONFIG_X86)997
998#if (defined(CONFIG_X86_32) || defined(CONFIG_PARISC)) && \
999 defined(CONFIG_DEBUG_STACKOVERFLOW)
998 {1000 {
999 .procname = "panic_on_unrecovered_nmi",1001 .procname = "panic_on_stackoverflow",
1000 .data = &panic_on_unrecovered_nmi,1002 .data = &sysctl_panic_on_stackoverflow,
1001 .maxlen = sizeof(int),1003 .maxlen = sizeof(int),
1002 .mode = 0644,1004 .mode = 0644,
1003 .proc_handler = proc_dointvec,1005 .proc_handler = proc_dointvec,
1004 },1006 },
1007#endif
1008#if defined(CONFIG_X86)
1005 {1009 {
1006 .procname = "panic_on_io_nmi",1010 .procname = "panic_on_unrecovered_nmi",
1007 .data = &panic_on_io_nmi,1011 .data = &panic_on_unrecovered_nmi,
1008 .maxlen = sizeof(int),1012 .maxlen = sizeof(int),
1009 .mode = 0644,1013 .mode = 0644,
1010 .proc_handler = proc_dointvec,1014 .proc_handler = proc_dointvec,
1011 },1015 },
1012#ifdef CONFIG_DEBUG_STACKOVERFLOW
1013 {1016 {
1014 .procname = "panic_on_stackoverflow",1017 .procname = "panic_on_io_nmi",
1015 .data = &sysctl_panic_on_stackoverflow,1018 .data = &panic_on_io_nmi,
1016 .maxlen = sizeof(int),1019 .maxlen = sizeof(int),
1017 .mode = 0644,1020 .mode = 0644,
1018 .proc_handler = proc_dointvec,1021 .proc_handler = proc_dointvec,
1019 },1022 },
1020#endif
1021 {1023 {
1022 .procname = "bootloader_type",1024 .procname = "bootloader_type",
1023 .data = &bootloader_type,1025 .data = &bootloader_type,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t