Lines Matching refs:prof_buffer
43 static atomic_t *prof_buffer; variable
122 prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN); in profile_init()
123 if (prof_buffer) in profile_init()
126 prof_buffer = alloc_pages_exact(buffer_bytes, in profile_init()
128 if (prof_buffer) in profile_init()
131 prof_buffer = vzalloc(buffer_bytes); in profile_init()
132 if (prof_buffer) in profile_init()
247 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in profile_flip_buffers()
308 atomic_add(nr_hits, &prof_buffer[pc]); in do_profile_hits()
310 atomic_add(hits[i].hits, &prof_buffer[hits[i].pc]); in do_profile_hits()
374 atomic_add(nr_hits, &prof_buffer[min(pc, prof_len - 1)]); in do_profile_hits()
380 if (prof_on != type || !prof_buffer) in profile_hits()
469 pnt = (char *)prof_buffer + p - sizeof(atomic_t); in read_profile()
504 memset(prof_buffer, 0, prof_len * sizeof(atomic_t)); in write_profile()