PSDEV_LNET_DAEMON_FILE, /* spool kernel debug buffer to file */
PSDEV_LNET_DEBUG_MB, /* size of debug buffer */
PSDEV_LNET_DEBUG_LOG_UPCALL, /* debug log upcall script */
+ PSDEV_LNET_WATCHDOG_RATELIMIT, /* ratelimit watchdog messages */
};
#else
#define CTL_LNET CTL_UNNUMBERED
#define PSDEV_LNET_DAEMON_FILE CTL_UNNUMBERED
#define PSDEV_LNET_DEBUG_MB CTL_UNNUMBERED
#define PSDEV_LNET_DEBUG_LOG_UPCALL CTL_UNNUMBERED
+#define PSDEV_LNET_WATCHDOG_RATELIMIT CTL_UNNUMBERED
#endif
DECLARE_PROC_HANDLER(proc_dobitmasks)
+static int min_watchdog_ratelimit = 0; /* disable ratelimiting */
+static int max_watchdog_ratelimit = (24*60*60); /* limit to once per day */
+
static int __proc_dump_kernel(void *data, int write,
loff_t pos, void *buffer, int nob)
{
.mode = 0644,
.proc_handler = &proc_debug_mb,
},
+ {
+ .ctl_name = PSDEV_LNET_WATCHDOG_RATELIMIT,
+ .procname = "watchdog_ratelimit",
+ .data = &libcfs_watchdog_ratelimit,
+ .maxlen = sizeof(int),
+ .mode = 0644,
+ .proc_handler = &proc_dointvec_minmax,
+ .extra1 = &min_watchdog_ratelimit,
+ .extra2 = &max_watchdog_ratelimit,
+ },
{0}
};
int insert_proc(void)
{
#ifdef CONFIG_SYSCTL
- printk("call register\n");
if (lnet_table_header == NULL)
lnet_table_header = cfs_register_sysctl_table(top_table, 0);
#endif