Lines Matching defs:hits
32 u32 pc, hits;
234 * profile hits. read_profile() IPI's all cpus to request them
239 * profile hits required for the accuracy of reported profile hits
243 * and hold the number of pending hits to that profile buffer slot on
244 * a cpu in an entry. When the hashtable overflows, all pending hits
246 * atomic_add() and the hashtable emptied. As numerous pending hits
251 * positions to which hits are accounted during short intervals (e.g.
279 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[j];
281 if (!hits[i].hits) {
282 if (hits[i].pc)
283 hits[i].pc = 0;
286 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]);
287 hits[i].hits = hits[i].pc = 0;
302 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[i];
303 memset(hits, 0, NR_PROFILE_HIT*sizeof(struct profile_hit));
312 struct profile_hit *hits;
320 hits = per_cpu(cpu_profile_hits, cpu)[per_cpu(cpu_profile_flip, cpu)];
321 if (!hits) {
333 if (hits[i + j].pc == pc) {
334 hits[i + j].hits += nr_hits;
336 } else if (!hits[i + j].hits) {
337 hits[i + j].pc = pc;
338 hits[i + j].hits = nr_hits;
351 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]);
352 hits[i].pc = hits[i].hits = 0;