Lines Matching refs:needed
193 int trace_list_functions(void *buff, size_t buff_size, size_t *needed) in trace_list_functions() argument
231 *needed = ptr - buff; in trace_list_functions()
250 int trace_list_calls(void *buff, size_t buff_size, size_t *needed) in trace_list_calls() argument
288 *needed = ptr - buff; in trace_list_calls()
346 size_t needed; in trace_init() local
376 needed = sizeof(*hdr) + func_count * sizeof(uintptr_t); in trace_init()
377 if (needed > buff_size) { in trace_init()
379 buff_size, needed); in trace_init()
384 memset(hdr, '\0', needed); in trace_init()
389 hdr->ftrace = (struct trace_call *)(buff + needed); in trace_init()
390 hdr->ftrace_size = (buff_size - needed) / sizeof(*hdr->ftrace); in trace_init()
411 size_t needed; in trace_early_init() local
418 needed = sizeof(*hdr) + func_count * sizeof(uintptr_t); in trace_early_init()
419 if (needed > buff_size) { in trace_early_init()
421 buff_size, needed); in trace_early_init()
425 memset(hdr, '\0', needed); in trace_early_init()
430 hdr->ftrace = (struct trace_call *)((char *)hdr + needed); in trace_early_init()
431 hdr->ftrace_size = (buff_size - needed) / sizeof(*hdr->ftrace); in trace_early_init()