> Default: `none`
+> Can be modified at runtime
+
Specify which timestamp format Xen should use for each console line.
* `none`: No timestamps
> Default: `conswitch=a`
+> Can be modified at runtime
+
Specify which character should be used to switch serial input between
Xen and dom0. The required sequence is CTRL-<switch char> three
times.
> Default: `guest_loglvl=none/warning`
+> Can be modified at runtime
+
Set the logging level for Xen guests. Any log message with equal more
more importance will be printed.
> Default: `loglvl=warning`
+> Can be modified at runtime
+
Set the logging level for Xen. Any log message with equal more more
importance will be printed.
/* Char 2: If this character is 'x', then do not auto-switch to DOM0 when it */
/* boots. Any other value, or omitting the char, enables auto-switch */
static unsigned char __read_mostly opt_conswitch[3] = "a";
-string_param("conswitch", opt_conswitch);
+string_runtime_param("conswitch", opt_conswitch);
/* sync_console: force synchronous console output (useful for debugging). */
static bool_t __initdata opt_sync_console;
static enum con_timestamp_mode __read_mostly opt_con_timestamp_mode = TSM_NONE;
static int parse_console_timestamps(const char *s);
-custom_param("console_timestamps", parse_console_timestamps);
+custom_runtime_param("console_timestamps", parse_console_timestamps);
/* conring_size: allows a large console ring than default (16kB). */
static uint32_t __initdata opt_conring_size;
* Similar definitions for guest_loglvl, but applies to guest tracing.
* Defaults: loglvl=warning ; guest_loglvl=none/warning
*/
-custom_param("loglvl", parse_loglvl);
-custom_param("guest_loglvl", parse_guest_loglvl);
+custom_runtime_param("loglvl", parse_loglvl);
+custom_runtime_param("guest_loglvl", parse_guest_loglvl);
static atomic_t print_everything = ATOMIC_INIT(0);
return (lvlnum); \
}
-static int __init __parse_loglvl(const char *s, const char **ps)
+static int __parse_loglvl(const char *s, const char **ps)
{
___parse_loglvl(s, ps, "none", 0);
___parse_loglvl(s, ps, "error", 1);
return 2; /* sane fallback */
}
-static int __init _parse_loglvl(const char *s, int *lower, int *upper)
+static int _parse_loglvl(const char *s, int *lower, int *upper)
{
*lower = *upper = __parse_loglvl(s, &s);
if ( *s == '/' )
return *s ? -EINVAL : 0;
}
-static int __init parse_loglvl(const char *s)
+static int parse_loglvl(const char *s)
{
return _parse_loglvl(s, &xenlog_lower_thresh, &xenlog_upper_thresh);
}
-static int __init parse_guest_loglvl(const char *s)
+static int parse_guest_loglvl(const char *s)
{
return _parse_loglvl(s, &xenlog_guest_lower_thresh,
&xenlog_guest_upper_thresh);
((loglvl < upper_thresh) && printk_ratelimit()));
}
-static int __init parse_console_timestamps(const char *s)
+static int parse_console_timestamps(const char *s)
{
switch ( parse_bool(s, NULL) )
{