#define DEFAULT_IOFENCE_MARGIN 60/* Default fudge factor, in seconds */ #define DEFAULT_IOFENCE_TICK 180/* Default timer timeout, in seconds */
staticint hangcheck_tick = DEFAULT_IOFENCE_TICK; staticint hangcheck_margin = DEFAULT_IOFENCE_MARGIN; staticint hangcheck_reboot; /* Defaults to not reboot */ staticint hangcheck_dump_tasks; /* Defaults to not dumping SysRQ T */
/* options - modular */
module_param(hangcheck_tick, int, 0);
MODULE_PARM_DESC(hangcheck_tick, "Timer delay.");
module_param(hangcheck_margin, int, 0);
MODULE_PARM_DESC(hangcheck_margin, "If the hangcheck timer has been delayed more than hangcheck_margin seconds, the driver will fire.");
module_param(hangcheck_reboot, int, 0);
MODULE_PARM_DESC(hangcheck_reboot, "If nonzero, the machine will reboot when the timer margin is exceeded.");
module_param(hangcheck_dump_tasks, int, 0);
MODULE_PARM_DESC(hangcheck_dump_tasks, "If nonzero, the machine will dump the system task state when the timer margin is exceeded.");
MODULE_AUTHOR("Oracle");
MODULE_DESCRIPTION("Hangcheck-timer detects when the system has gone out to lunch past a certain margin.");
MODULE_LICENSE("GPL");
MODULE_VERSION(VERSION_STR);
/* options - nonmodular */ #ifndef MODULE
staticint __init hangcheck_parse_tick(char *str)
{ int par; if (get_option(&str,&par))
hangcheck_tick = par; return1;
}
staticint __init hangcheck_parse_margin(char *str)
{ int par; if (get_option(&str,&par))
hangcheck_margin = par; return1;
}
staticint __init hangcheck_parse_reboot(char *str)
{ int par; if (get_option(&str,&par))
hangcheck_reboot = par; return1;
}
staticint __init hangcheck_parse_dump_tasks(char *str)
{ int par; if (get_option(&str,&par))
hangcheck_dump_tasks = par; return1;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.