Lines Matching refs:hits
35 u32 pc, hits; member
255 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[j]; in profile_flip_buffers() local
257 if (!hits[i].hits) { in profile_flip_buffers()
258 if (hits[i].pc) in profile_flip_buffers()
259 hits[i].pc = 0; in profile_flip_buffers()
262 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in profile_flip_buffers()
263 hits[i].hits = hits[i].pc = 0; in profile_flip_buffers()
278 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[i]; in profile_discard_flip_buffers() local
279 memset(hits, 0, NR_PROFILE_HIT*sizeof(struct profile_hit)); in profile_discard_flip_buffers()
288 struct profile_hit *hits; in do_profile_hits() local
294 hits = per_cpu(cpu_profile_hits, cpu)[per_cpu(cpu_profile_flip, cpu)]; in do_profile_hits()
295 if (!hits) { in do_profile_hits()
307 if (hits[i + j].pc == pc) { in do_profile_hits()
308 hits[i + j].hits += nr_hits; in do_profile_hits()
310 } else if (!hits[i + j].hits) { in do_profile_hits()
311 hits[i + j].pc = pc; in do_profile_hits()
312 hits[i + j].hits = nr_hits; in do_profile_hits()
325 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in do_profile_hits()
326 hits[i].pc = hits[i].hits = 0; in do_profile_hits()