test: initf_malloc is only traced with EARLY_TRACE

Only if early tracing is enable the function initf_malloc can be traced.

Add a configuration check.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Heinrich Schuchardt
2025-12-21 02:58:58 +01:00
parent e7bbbd8e09
commit ddfb487a28

View File

@@ -159,6 +159,7 @@ def check_function(ubman, fname, proftool, map_fname, trace_dat):
base = timestamp
# Check for some expected functions
if ubman.config.buildconfig.get('config_trace_early'):
assert 'initf_malloc' in vals.keys()
assert 'initr_watchdog' in vals.keys()
assert 'initr_dm' in vals.keys()