aboutsummaryrefslogtreecommitdiff
path: root/scripts/event_dump.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-09-06 20:26:56 -0600
committerTom Rini <trini@konsulko.com>2022-09-29 16:07:57 -0400
commitb5001cb4bdfed678877840776c15b1e9a358dacf (patch)
treee956248529ce695d996e26304cd7fe104fe846f0 /scripts/event_dump.py
parentf39e5b802aa486a038a0cbe54c2b6f72aa551f9f (diff)
event: Allow multiple spy declarations for each event
At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts/event_dump.py')
-rwxr-xr-xscripts/event_dump.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/event_dump.py b/scripts/event_dump.py
index 751f41b183..6aadddf28d 100755
--- a/scripts/event_dump.py
+++ b/scripts/event_dump.py
@@ -17,8 +17,10 @@ sys.path.insert(1, os.path.join(our_path, '../tools'))
from binman import elf
from patman import tools
+# A typical symbol looks like this:
+# _u_boot_list_2_evspy_info_2_EVT_MISC_INIT_F_3_sandbox_misc_init_f
PREFIX = '_u_boot_list_2_evspy_info_2_'
-RE_EVTYPE = re.compile('%s(.*)' % PREFIX)
+RE_EVTYPE = re.compile('%s(.*)_3_.*' % PREFIX)
def show_sym(fname, data, endian, evtype, sym):
"""Show information about an evspy entry