Lines Matching refs:prof_len
44 static unsigned long prof_len; variable
98 prof_len = (_etext - _stext) >> prof_shift; in profile_init()
100 if (!prof_len) { in profile_init()
106 buffer_bytes = prof_len*sizeof(atomic_t); in profile_init()
213 pc = min((pc - (unsigned long)_stext) >> prof_shift, prof_len - 1); in do_profile_hits()
312 atomic_add(nr_hits, &prof_buffer[min(pc, prof_len - 1)]); in do_profile_hits()
396 if (p >= (prof_len+1)*sizeof(unsigned int)) in read_profile()
398 if (count > (prof_len+1)*sizeof(unsigned int) - p) in read_profile()
399 count = (prof_len+1)*sizeof(unsigned int) - p; in read_profile()
442 memset(prof_buffer, 0, prof_len * sizeof(atomic_t)); in write_profile()
480 proc_set_size(entry, (1 + prof_len) * sizeof(atomic_t)); in create_proc_profile()