case TYPE_S_SINGLE:
for_each_online_cpu ( cpu )
sum += per_cpu(perfcounters, cpu)[j];
- if ( perfc_info[i].type == TYPE_S_SINGLE )
+ if ( perfc_info[i].type == TYPE_S_SINGLE )
sum = (perfc_t) sum;
printk("TOTAL[%12Lu]", sum);
if ( sum )
{
if ( k > 0 && (k % 4) == 0 )
printk("\n%53s", "");
- printk(" CPU%02u[%10"PRIperfc"u]", cpu, per_cpu(perfcounters, cpu)[j]);
+ printk(" CPU%02u[%10u]", cpu, per_cpu(perfcounters, cpu)[j]);
++k;
}
}
for ( k = 0; k < perfc_info[i].nr_elements; k++ )
sum += counters[k];
}
- if ( perfc_info[i].type == TYPE_S_ARRAY )
+ if ( perfc_info[i].type == TYPE_S_ARRAY )
sum = (perfc_t) sum;
printk("TOTAL[%12Lu]", sum);
if (sum)
sum = 0;
for_each_online_cpu ( cpu )
sum += per_cpu(perfcounters, cpu)[j + k];
- if ( perfc_info[i].type == TYPE_S_ARRAY )
+ if ( perfc_info[i].type == TYPE_S_ARRAY )
sum = (perfc_t) sum;
if ( (k % 4) == 0 )
printk("\n%16s", "");
sum = 0;
for ( n = 0; n < perfc_info[i].nr_elements; n++ )
sum += counters[n];
- if ( perfc_info[i].type == TYPE_S_ARRAY )
+ if ( perfc_info[i].type == TYPE_S_ARRAY )
sum = (perfc_t) sum;
if ( k > 0 && (k % 4) == 0 )
printk("\n%53s", "");
/*
* NOTE: new counters must be defined in perfc_defn.h
- *
+ *
* Counter declarations:
* PERFCOUNTER (counter, string) define a new performance counter
* PERFCOUNTER_ARRAY (counter, string, size) define an array of counters
- *
+ *
* Unlike counters, status variables do not reset:
* PERFSTATUS (counter, string) define a new performance stauts
* PERFSTATUS_ARRAY (counter, string, size) define an array of status vars
- *
- * unsigned long perfc_value (counter) get value of a counter
+ *
+ * unsigned long perfc_value (counter) get value of a counter
* unsigned long perfc_valuea (counter, index) get value of an array counter
- * unsigned long perfc_set (counter, val) set value of a counter
+ * unsigned long perfc_set (counter, val) set value of a counter
* unsigned long perfc_seta (counter, index, val) set value of an array counter
- * void perfc_incr (counter) increment a counter
+ * void perfc_incr (counter) increment a counter
* void perfc_decr (counter) decrement a status
- * void perfc_incra (counter, index) increment an array counter
- * void perfc_add (counter, value) add a value to a counter
- * void perfc_adda (counter, index, value) add a value to array counter
+ * void perfc_incra (counter, index) increment an array counter
+ * void perfc_add (counter, value) add a value to a counter
+ * void perfc_adda (counter, index, value) add a value to array counter
* void perfc_print (counter) print out the counter
*/
#undef PERFSTATUS_ARRAY
typedef unsigned int perfc_t;
-#define PRIperfc ""
DECLARE_PER_CPU(perfc_t[NUM_PERFCOUNTERS], perfcounters);
this_cpu(perfcounters)[PERFC_ ## x + (y)] = (v) : (v) )
/*
- * Histogram: special treatment for 0 and 1 count. After that equally spaced
+ * Histogram: special treatment for 0 and 1 count. After that equally spaced
* with last bucket taking the rest.
*/
#ifdef CONFIG_PERF_ARRAYS
extern void cf_check perfc_printall(unsigned char key);
extern void cf_check perfc_reset(unsigned char key);
-
+
#else /* CONFIG_PERF_COUNTERS */
#define perfc_value(x) (0)