mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
trace: make call depth limit customizable
Up to now we had hard coded values for the call depth up to which trace records are created: 200 for early tracing, 15 thereafter. UEFI applications reach a call depth of 80 or above. Provide customizing settings for the call trace depth limit and the early call trace depth limit. Use the old values as defaults. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
a2fa38da20
commit
da0fb5fdd4
@@ -376,7 +376,7 @@ int __attribute__((no_instrument_function)) trace_init(void *buff,
|
||||
add_textbase();
|
||||
|
||||
puts("trace: enabled\n");
|
||||
hdr->depth_limit = 15;
|
||||
hdr->depth_limit = CONFIG_TRACE_CALL_DEPTH_LIMIT;
|
||||
trace_enabled = 1;
|
||||
trace_inited = 1;
|
||||
|
||||
@@ -410,7 +410,7 @@ int __attribute__((no_instrument_function)) trace_early_init(void)
|
||||
hdr->ftrace = (struct trace_call *)((char *)hdr + needed);
|
||||
hdr->ftrace_size = (buff_size - needed) / sizeof(*hdr->ftrace);
|
||||
add_textbase();
|
||||
hdr->depth_limit = 200;
|
||||
hdr->depth_limit = CONFIG_TRACE_EARLY_CALL_DEPTH_LIMIT;
|
||||
printf("trace: early enable at %08x\n", CONFIG_TRACE_EARLY_ADDR);
|
||||
|
||||
trace_enabled = 1;
|
||||
|
Reference in New Issue
Block a user