aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/debug.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /arch/s390/kernel/debug.c
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'arch/s390/kernel/debug.c')
-rw-r--r--arch/s390/kernel/debug.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c
index 20f282c911c2..0168472b2fdf 100644
--- a/arch/s390/kernel/debug.c
+++ b/arch/s390/kernel/debug.c
@@ -18,6 +18,7 @@
18#include <linux/errno.h> 18#include <linux/errno.h>
19#include <linux/slab.h> 19#include <linux/slab.h>
20#include <linux/ctype.h> 20#include <linux/ctype.h>
21#include <linux/string.h>
21#include <linux/sysctl.h> 22#include <linux/sysctl.h>
22#include <asm/uaccess.h> 23#include <asm/uaccess.h>
23#include <linux/module.h> 24#include <linux/module.h>
@@ -893,35 +894,30 @@ s390dbf_procactive(ctl_table *table, int write,
893 894
894static struct ctl_table s390dbf_table[] = { 895static struct ctl_table s390dbf_table[] = {
895 { 896 {
896 .ctl_name = CTL_S390DBF_STOPPABLE,
897 .procname = "debug_stoppable", 897 .procname = "debug_stoppable",
898 .data = &debug_stoppable, 898 .data = &debug_stoppable,
899 .maxlen = sizeof(int), 899 .maxlen = sizeof(int),
900 .mode = S_IRUGO | S_IWUSR, 900 .mode = S_IRUGO | S_IWUSR,
901 .proc_handler = &proc_dointvec, 901 .proc_handler = proc_dointvec,
902 .strategy = &sysctl_intvec,
903 }, 902 },
904 { 903 {
905 .ctl_name = CTL_S390DBF_ACTIVE,
906 .procname = "debug_active", 904 .procname = "debug_active",
907 .data = &debug_active, 905 .data = &debug_active,
908 .maxlen = sizeof(int), 906 .maxlen = sizeof(int),
909 .mode = S_IRUGO | S_IWUSR, 907 .mode = S_IRUGO | S_IWUSR,
910 .proc_handler = &s390dbf_procactive, 908 .proc_handler = s390dbf_procactive,
911 .strategy = &sysctl_intvec,
912 }, 909 },
913 { .ctl_name = 0 } 910 { }
914}; 911};
915 912
916static struct ctl_table s390dbf_dir_table[] = { 913static struct ctl_table s390dbf_dir_table[] = {
917 { 914 {
918 .ctl_name = CTL_S390DBF,
919 .procname = "s390dbf", 915 .procname = "s390dbf",
920 .maxlen = 0, 916 .maxlen = 0,
921 .mode = S_IRUGO | S_IXUGO, 917 .mode = S_IRUGO | S_IXUGO,
922 .child = s390dbf_table, 918 .child = s390dbf_table,
923 }, 919 },
924 { .ctl_name = 0 } 920 { }
925}; 921};
926 922
927static struct ctl_table_header *s390dbf_sysctl_header; 923static struct ctl_table_header *s390dbf_sysctl_header;
@@ -1183,7 +1179,7 @@ debug_get_uint(char *buf)
1183{ 1179{
1184 int rc; 1180 int rc;
1185 1181
1186 for(; isspace(*buf); buf++); 1182 buf = skip_spaces(buf);
1187 rc = simple_strtoul(buf, &buf, 10); 1183 rc = simple_strtoul(buf, &buf, 10);
1188 if(*buf){ 1184 if(*buf){
1189 rc = -EINVAL; 1185 rc = -EINVAL;