Lines Matching refs:hits
32 u32 pc, hits; member
277 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[j]; in profile_flip_buffers() local
279 if (!hits[i].hits) { in profile_flip_buffers()
280 if (hits[i].pc) in profile_flip_buffers()
281 hits[i].pc = 0; in profile_flip_buffers()
284 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in profile_flip_buffers()
285 hits[i].hits = hits[i].pc = 0; in profile_flip_buffers()
300 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[i]; in profile_discard_flip_buffers() local
301 memset(hits, 0, NR_PROFILE_HIT*sizeof(struct profile_hit)); in profile_discard_flip_buffers()
310 struct profile_hit *hits; in do_profile_hits() local
316 hits = per_cpu(cpu_profile_hits, cpu)[per_cpu(cpu_profile_flip, cpu)]; in do_profile_hits()
317 if (!hits) { in do_profile_hits()
329 if (hits[i + j].pc == pc) { in do_profile_hits()
330 hits[i + j].hits += nr_hits; in do_profile_hits()
332 } else if (!hits[i + j].hits) { in do_profile_hits()
333 hits[i + j].pc = pc; in do_profile_hits()
334 hits[i + j].hits = nr_hits; in do_profile_hits()
347 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in do_profile_hits()
348 hits[i].pc = hits[i].hits = 0; in do_profile_hits()