X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=kernel%2Fvserver%2Fsysctl.c;h=d233b1f3970c956bce023f407c822b28a29d46ed;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=7afa0091d34c11f9b8085c678675eceaf089d92b;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/kernel/vserver/sysctl.c b/kernel/vserver/sysctl.c index 7afa0091d..d233b1f39 100644 --- a/kernel/vserver/sysctl.c +++ b/kernel/vserver/sysctl.c @@ -1,5 +1,5 @@ /* - * linux/kernel/sysctl.c + * kernel/vserver/sysctl.c * * Virtual Context Support * @@ -9,12 +9,12 @@ * */ -#include #include #include #include #include #include +#include #include #include @@ -24,13 +24,16 @@ #define CTL_VSERVER 4242 /* unused? */ enum { + CTL_DEBUG_ERROR = 0, CTL_DEBUG_SWITCH = 1, CTL_DEBUG_XID, CTL_DEBUG_NID, CTL_DEBUG_NET, CTL_DEBUG_LIMIT, + CTL_DEBUG_CRES, CTL_DEBUG_DLIM, CTL_DEBUG_CVIRT, + CTL_DEBUG_MISC, }; @@ -39,8 +42,10 @@ unsigned int vx_debug_xid = 0; unsigned int vx_debug_nid = 0; unsigned int vx_debug_net = 0; unsigned int vx_debug_limit = 0; +unsigned int vx_debug_cres = 0; unsigned int vx_debug_dlim = 0; unsigned int vx_debug_cvirt = 0; +unsigned int vx_debug_misc = 0; static struct ctl_table_header *vserver_table_header; @@ -164,6 +169,14 @@ static ctl_table debug_table[] = { .mode = 0644, .proc_handler = &proc_dodebug }, + { + .ctl_name = CTL_DEBUG_CRES, + .procname = "debug_cres", + .data = &vx_debug_cres, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = &proc_dodebug + }, { .ctl_name = CTL_DEBUG_DLIM, .procname = "debug_dlim", @@ -180,6 +193,14 @@ static ctl_table debug_table[] = { .mode = 0644, .proc_handler = &proc_dodebug }, + { + .ctl_name = CTL_DEBUG_MISC, + .procname = "debug_misc", + .data = &vx_debug_misc, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = &proc_dodebug + }, { .ctl_name = 0 } }; @@ -199,6 +220,8 @@ EXPORT_SYMBOL_GPL(vx_debug_xid); EXPORT_SYMBOL_GPL(vx_debug_nid); EXPORT_SYMBOL_GPL(vx_debug_net); EXPORT_SYMBOL_GPL(vx_debug_limit); +EXPORT_SYMBOL_GPL(vx_debug_cres); EXPORT_SYMBOL_GPL(vx_debug_dlim); EXPORT_SYMBOL_GPL(vx_debug_cvirt); +EXPORT_SYMBOL_GPL(vx_debug_misc);