[RFC 7/8] test: initf_malloc is only traced with EARLY_TRACE

Simon Glass sjg at chromium.org
Sat Dec 27 14:45:10 CET 2025


On Sat, 20 Dec 2025 at 18:59, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Only if early tracing is enable the function initf_malloc can be traced.
>
> Add a configuration check.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  test/py/tests/test_trace.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <simon.glass at canonical.com>



>
> diff --git a/test/py/tests/test_trace.py b/test/py/tests/test_trace.py
> index 7f897e4c366..bbe6dd7de41 100644
> --- a/test/py/tests/test_trace.py
> +++ b/test/py/tests/test_trace.py
> @@ -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()
>
> --
> 2.51.0
>


More information about the U-Boot mailing list