]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: initf_malloc is only traced with EARLY_TRACE
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 21 Dec 2025 01:58:58 +0000 (02:58 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 19 Jan 2026 09:31:21 +0000 (10:31 +0100)
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>
test/py/tests/test_trace.py

index fcdcbe2c6dbbe0a74a92b0802ac8d974f8ab4597..3cb14b1c6b97a5eceefe7abc12cffaa5d068d439 100644 (file)
@@ -159,7 +159,8 @@ def check_function(ubman, fname, proftool, map_fname, trace_dat):
             base = timestamp
 
     # Check for some expected functions
-    assert 'initf_malloc' in vals.keys()
+    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()