Skip to contentSkip to conversation

log level setup

PATCH Superseded Steven Rostedt 1 participant 1 message Oct 27, 2006

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

xen/common/domain.c +3 -0
diff -r 3c5e1286db49 xen/common/domain.c
@@ -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
diff -r 3c5e1286db49 xen/include/xen/lib.h
@@ -58,6 +58,13 @@ extern long vm_assist(struct domain *, u
 extern 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