Lines Matching refs:needed
146 int trace_list_functions(void *buff, int buff_size, unsigned int *needed) in trace_list_functions() argument
184 *needed = ptr - buff; in trace_list_functions()
190 int trace_list_calls(void *buff, int buff_size, unsigned *needed) in trace_list_calls() argument
228 *needed = ptr - buff; in trace_list_calls()
282 size_t needed; in trace_init() local
309 needed = sizeof(*hdr) + func_count * sizeof(uintptr_t); in trace_init()
310 if (needed > buff_size) { in trace_init()
312 buff_size, needed); in trace_init()
317 memset(hdr, '\0', needed); in trace_init()
322 hdr->ftrace = (struct trace_call *)(buff + needed); in trace_init()
323 hdr->ftrace_size = (buff_size - needed) / sizeof(*hdr->ftrace); in trace_init()
338 size_t needed; in trace_early_init() local
345 needed = sizeof(*hdr) + func_count * sizeof(uintptr_t); in trace_early_init()
346 if (needed > buff_size) { in trace_early_init()
348 buff_size, needed); in trace_early_init()
352 memset(hdr, '\0', needed); in trace_early_init()
357 hdr->ftrace = (struct trace_call *)((char *)hdr + needed); in trace_early_init()
358 hdr->ftrace_size = (buff_size - needed) / sizeof(*hdr->ftrace); in trace_early_init()