search for: perfc_info

Displaying 2 results from an estimated 2 matches for "perfc_info".

2007 Mar 27
0
[PATCH] make all performance counter per-cpu
...r *name; - enum { TYPE_SINGLE, TYPE_CPU, TYPE_ARRAY, - TYPE_S_SINGLE, TYPE_S_CPU, TYPE_S_ARRAY +static const struct { + const char *name; + enum { TYPE_SINGLE, TYPE_ARRAY, + TYPE_S_SINGLE, TYPE_S_ARRAY } type; - int nr_elements; + unsigned int nr_elements; } perfc_info[] = { #include <xen/perfc_defn.h> }; #define NR_PERFCTRS (sizeof(perfc_info) / sizeof(perfc_info[0])) -struct perfcounter perfcounters; +DEFINE_PER_CPU(perfc_t[NUM_PERFCOUNTERS], perfcounters); void perfc_printall(unsigned char key) { - unsigned int i, j, sum; + unsigned int...
2009 Jul 15
0
[PATCH] rename for_each_cpu() to for_each_possible_cpu()
...per_cpu(cpu_time, cpu).tsc_scale = per_cpu(cpu_time, 0).tsc_scale; } --- 2009-07-10.orig/xen/common/perfc.c 2007-06-21 09:23:10.000000000 +0200 +++ 2009-07-10/xen/common/perfc.c 2009-07-15 10:03:02.000000000 +0200 @@ -136,13 +136,13 @@ void perfc_reset(unsigned char key) switch ( perfc_info[i].type ) { case TYPE_SINGLE: - for_each_cpu ( cpu ) + for_each_possible_cpu ( cpu ) per_cpu(perfcounters, cpu)[j] = 0; case TYPE_S_SINGLE: ++j; break; case TYPE_ARRAY: - for_each_cpu ( c...