Lines Matching refs:hits
32 u32 pc, hits; member
282 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[j]; in profile_flip_buffers() local
284 if (!hits[i].hits) { in profile_flip_buffers()
285 if (hits[i].pc) in profile_flip_buffers()
286 hits[i].pc = 0; in profile_flip_buffers()
289 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in profile_flip_buffers()
290 hits[i].hits = hits[i].pc = 0; in profile_flip_buffers()
305 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[i]; in profile_discard_flip_buffers() local
306 memset(hits, 0, NR_PROFILE_HIT*sizeof(struct profile_hit)); in profile_discard_flip_buffers()
315 struct profile_hit *hits; in profile_hits() local
323 hits = per_cpu(cpu_profile_hits, cpu)[per_cpu(cpu_profile_flip, cpu)]; in profile_hits()
324 if (!hits) { in profile_hits()
336 if (hits[i + j].pc == pc) { in profile_hits()
337 hits[i + j].hits += nr_hits; in profile_hits()
339 } else if (!hits[i + j].hits) { in profile_hits()
340 hits[i + j].pc = pc; in profile_hits()
341 hits[i + j].hits = nr_hits; in profile_hits()
354 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in profile_hits()
355 hits[i].pc = hits[i].hits = 0; in profile_hits()