Lines Matching refs:counters
21 counters. They minimize the performance cost of standard atomic operations by
25 Having fast per CPU atomic counters is interesting in many cases : it does not
27 coherent counters in NMI handlers. It is especially useful for tracing purposes
28 and for various performance monitoring counters.
81 static DEFINE_PER_CPU(local_t, counters) = LOCAL_INIT(0);
92 local_inc(&get_cpu_var(counters));
93 put_cpu_var(counters);
98 local_inc(this_cpu_ptr(&counters));
102 * Reading the counters
104 Those local counters can be read from foreign CPUs to sum the count. Note that
110 sum += local_read(&per_cpu(counters, cpu));
133 static DEFINE_PER_CPU(local_t, counters) = LOCAL_INIT(0);
142 local_inc(this_cpu_ptr(&counters));
147 * local_inc(&get_cpu_var(counters));
148 * put_cpu_var(counters);
156 /* Increment the counters */
158 /* Read all the counters */
162 local_read(&per_cpu(counters, cpu)));