diff options
author | Simon Glass <sjg@chromium.org> | 2024-06-23 14:30:22 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-07-04 09:25:20 -0600 |
commit | 57c4cd17e6988d9ba4b9184f7b4e66ff0c22108f (patch) | |
tree | 68058a756132fb0b50e45fe8700971118cc89739 /test | |
parent | cb44201c7182f9367e7e0dd1b009a85e26fc1a83 (diff) | |
download | u-boot-57c4cd17e6988d9ba4b9184f7b4e66ff0c22108f.tar.gz u-boot-57c4cd17e6988d9ba4b9184f7b4e66ff0c22108f.tar.bz2 u-boot-57c4cd17e6988d9ba4b9184f7b4e66ff0c22108f.zip |
initcall: Correct use of relocation offset
The relocation offset can change in some initcall sequences. Handle
this and make sure it is used for all debugging statements in
init_run_list()
Update the trace test to match.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/py/tests/test_trace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/py/tests/test_trace.py b/test/py/tests/test_trace.py index f41d4cf71f..ec1e624722 100644 --- a/test/py/tests/test_trace.py +++ b/test/py/tests/test_trace.py @@ -175,7 +175,7 @@ def check_funcgraph(cons, fname, proftool, map_fname, trace_dat): # Then look for this: # u-boot-1 0..... 282.101375: funcgraph_exit: 0.006 us | } # Then check for this: - # u-boot-1 0..... 282.101375: funcgraph_entry: 0.000 us | initcall_is_event(); + # u-boot-1 0..... 282.101375: funcgraph_entry: 0.000 us | calc_reloc_ofs(); expected_indent = None found_start = False @@ -199,7 +199,7 @@ def check_funcgraph(cons, fname, proftool, map_fname, trace_dat): # The next function after initf_bootstage() exits should be # initcall_is_event() - assert upto == 'initcall_is_event()' + assert upto == 'calc_reloc_ofs()' # Now look for initf_dm() and dm_timer_init() so we can check the bootstage # time |