If a function is traced before relocation depends on the
CONFIG_EARLY_TRACE.

Timer initialization is not expected to be traced after relocation anymore.

Signed-off-by: Heinrich Schuchardt <[email protected]>
---
 test/py/tests/test_trace.py | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/test/py/tests/test_trace.py b/test/py/tests/test_trace.py
index fcdcbe2c6db..52d6ec6e5d2 100644
--- a/test/py/tests/test_trace.py
+++ b/test/py/tests/test_trace.py
@@ -271,18 +271,6 @@ def check_flamegraph(ubman, fname, proftool, map_fname, 
trace_fg):
         ubman, [proftool, '-t', fname, '-o', trace_fg, '-m', map_fname,
                'dump-flamegraph'])
 
-    # We expect dm_timer_init() to be called twice: once before relocation and
-    # once after
-    look1 = 'initf_dm;dm_timer_init 1'
-    look2 = 'board_init_r;initcall_run_r;initr_dm_devices;dm_timer_init 1'
-    found = 0
-    with open(trace_fg, 'r') as fd:
-        for line in fd:
-            line = line.strip()
-            if line == look1 or line == look2:
-                found += 1
-    assert found == 2
-
     # Generate the timing graph
     utils.run_and_log(
         ubman, [proftool, '-t', fname, '-o', trace_fg, '-m', map_fname,
-- 
2.51.0

Reply via email to