log level setup
PATCH 2/6 log level setup
This is the code that implements the log level settings.
It adds the thresholds and code to printk to implement the thresholds. It also adds xen_startup (still needs to be used) and oops_in_progress.
-- Steve
Signed-off-by Steven Rostedt <[email protected]>
xen/common/domain.c +3 -0
@@ -217,6 +217,8 @@ void domain_kill(struct domain *d)void __domain_crash (struct domain *d) { +/* FIXME - protect oops_in_progress */ + oops_in_progress++;if ( d == current->domain ) { printk("Domain %d (vcpu#%d) crashed on cpu#%d:\n",
@@ -230,6 +232,7 @@ void __domain_crash(struct domain *d) }domain_shutdown (d, SHUTDOWN_crash); + oops_in_progress--; }
xen/drivers/char/console.c +49 -0
73 lines not on this page · raw message
xen/include/xen/config.h +106 -13
132 lines not on this page · raw message
xen/include/xen/lib.h +7 -0
@@ -58,6 +58,13 @@ extern long vm_assist(struct domain *, uextern long vm_assist (struct domain *,unsigned int ,unsigned int );extern int __printk_ratelimit (int ratelimit_jiffies,int ratelimit_burst);extern int printk_ratelimit (void ); +extern int xenlog_upper_thresh; +extern int xenlog_lower_thresh; +extern int xenlog_guest_upper_thresh; +extern int xenlog_guest_lower_thresh; + +extern int oops_in_progress; +extern int xen_startup;/* vsprintf.c */ extern int sprintf (char * buf,const char * fmt, ...)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel