Lines Matching refs:hits
36 u32 pc, hits; member
264 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[j]; in profile_flip_buffers() local
266 if (!hits[i].hits) { in profile_flip_buffers()
267 if (hits[i].pc) in profile_flip_buffers()
268 hits[i].pc = 0; in profile_flip_buffers()
271 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in profile_flip_buffers()
272 hits[i].hits = hits[i].pc = 0; in profile_flip_buffers()
287 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[i]; in profile_discard_flip_buffers() local
288 memset(hits, 0, NR_PROFILE_HIT*sizeof(struct profile_hit)); in profile_discard_flip_buffers()
297 struct profile_hit *hits; in do_profile_hits() local
303 hits = per_cpu(cpu_profile_hits, cpu)[per_cpu(cpu_profile_flip, cpu)]; in do_profile_hits()
304 if (!hits) { in do_profile_hits()
316 if (hits[i + j].pc == pc) { in do_profile_hits()
317 hits[i + j].hits += nr_hits; in do_profile_hits()
319 } else if (!hits[i + j].hits) { in do_profile_hits()
320 hits[i + j].pc = pc; in do_profile_hits()
321 hits[i + j].hits = nr_hits; in do_profile_hits()
334 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in do_profile_hits()
335 hits[i].pc = hits[i].hits = 0; in do_profile_hits()