/*
- * linux/kernel/sysctl.c
+ * kernel/vserver/sysctl.c
*
* Virtual Context Support
*
*
*/
-#include <linux/config.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/ctype.h>
#include <linux/sysctl.h>
+#include <linux/parser.h>
#include <linux/fs.h>
#include <asm/uaccess.h>
#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,
};
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;
.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",
.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 }
};
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);