diff options
Diffstat (limited to 'xen/include/xeno')
-rw-r--r-- | xen/include/xeno/ac_timer.h | 10 | ||||
-rw-r--r-- | xen/include/xeno/perfc.h | 21 | ||||
-rw-r--r-- | xen/include/xeno/perfc_defn.h | 16 |
3 files changed, 29 insertions, 18 deletions
diff --git a/xen/include/xeno/ac_timer.h b/xen/include/xeno/ac_timer.h index 7cf568d2fc..280f377d17 100644 --- a/xen/include/xeno/ac_timer.h +++ b/xen/include/xeno/ac_timer.h @@ -43,10 +43,10 @@ */ struct ac_timer { - struct list_head timer_list; - s_time_t expires; /* system time time out value */ - unsigned long data; - void (*function)(unsigned long); + struct list_head timer_list; + s_time_t expires; /* system time time out value */ + unsigned long data; + void (*function)(unsigned long); }; /* interface for "clients" */ @@ -55,7 +55,7 @@ extern int rem_ac_timer(struct ac_timer *timer); extern int mod_ac_timer(struct ac_timer *timer, s_time_t new_time); static inline void init_ac_timer(struct ac_timer *timer) { - //timer->next = NULL; + timer->timer_list.next = NULL; } /* interface used by programmable timer, implemented hardware dependent */ diff --git a/xen/include/xeno/perfc.h b/xen/include/xeno/perfc.h index 330bb8eba9..4d0164c170 100644 --- a/xen/include/xeno/perfc.h +++ b/xen/include/xeno/perfc.h @@ -10,14 +10,18 @@ * PERFCOUNTER_ARRY (counter, string, size) define an array of counters * * unsigned long perfc_value (counter) get value of a counter + * unsigned long perfc_valuec (counter) get value of a per CPU counter * unsigned long perfc_valuea (counter, index) get value of an array counter - * void perfc_incr (counter) increment a counter - * void perfc_incrc (counter, index) increment a per CPU counter - * void perfc_incra (counter, index) increment an array counter - * void perfc_add (counter, value) add a value to a counter - * void perfc_addc (counter, value) add a value to a per CPU counter - * void perfc_adda (counter, index, value) add a value to array counter - * void perfc_print (counter) print out the counter + * unsigned long perfc_set (counter, val) set value of a counter + * unsigned long perfc_setc (counter, val) set value of a per CPU counter + * unsigned long perfc_seta (counter, index, val) set value of an array counter + * void perfc_incr (counter) increment a counter + * void perfc_incrc (counter, index) increment a per CPU counter + * void perfc_incra (counter, index) increment an array counter + * void perfc_add (counter, value) add a value to a counter + * void perfc_addc (counter, value) add a value to a per CPU counter + * void perfc_adda (counter, index, value) add a value to array counter + * void perfc_print (counter) print out the counter */ #define PERFCOUNTER( var, name ) \ @@ -38,6 +42,9 @@ extern char *perfc_name[]; #define perfc_value(x) perfcounters.x[0] #define perfc_valuec(x) perfcounters.x[smp_processor_id()] #define perfc_valuea(x,y) perfcounters.x[y] +#define perfc_set(x,v) perfcounters.x[0] = v +#define perfc_setc(x,v) perfcounters.x[smp_processor_id()] = v +#define perfc_seta(x,y,v) perfcounters.x[y] = v #define perfc_incr(x) perfcounters.x[0]++ #define perfc_incrc(x) perfcounters.x[smp_processor_id()]++ #define perfc_incra(x,y) perfcounters.x[y]++ diff --git a/xen/include/xeno/perfc_defn.h b/xen/include/xeno/perfc_defn.h index fde3e1dd72..f006079085 100644 --- a/xen/include/xeno/perfc_defn.h +++ b/xen/include/xeno/perfc_defn.h @@ -1,9 +1,13 @@ +PERFCOUNTER_CPU( irqs, "#interrupts" ) +PERFCOUNTER_CPU( irq_time, "cycles spent in irq handler" ) -PERFCOUNTER( blockio_tx, "block io: messages received from tx queue" ) -PERFCOUNTER( blockio_rx, "block io: messages sent on rx queue" ) +PERFCOUNTER( blockio_tx, "block io: messages received from tx queue" ) +PERFCOUNTER( blockio_rx, "block io: messages sent on rx queue" ) -PERFCOUNTER_CPU( apic_timer, "apic timer interrupts" ) -PERFCOUNTER_CPU( sched_irq, "sched: timer" ) -PERFCOUNTER_CPU( sched_run1, "sched: calls to schedule" ) -PERFCOUNTER_CPU( sched_run2, "sched: runs through scheduler" ) +PERFCOUNTER_CPU( apic_timer, "apic timer interrupts" ) +PERFCOUNTER_CPU( ac_timer_max, "ac_timer max error (ns)" ) +PERFCOUNTER_CPU( sched_irq, "sched: timer" ) +PERFCOUNTER_CPU( sched_run1, "sched: calls to schedule" ) +PERFCOUNTER_CPU( sched_run2, "sched: runs through scheduler" ) +PERFCOUNTER_CPU( sched_ctx, "sched: context switches" ) |