]> git.baikalelectronics.ru Git - uboot.git/commit
trace: Fix alignment logic in flyrecord header
authorMichal Simek <michal.simek@amd.com>
Fri, 15 Sep 2023 12:12:05 +0000 (14:12 +0200)
committerSimon Glass <sjg@chromium.org>
Sat, 23 Sep 2023 15:00:37 +0000 (09:00 -0600)
commita644c60aa95f8942cbed3472d07972b3c88b3fe3
tree97e9fe98dfc5b00ef2211fa1c1c65a7022612798
parent2c299d2a790a17bcecf263e313fa42f5c60b484e
trace: Fix alignment logic in flyrecord header

Current alignment which is using 16 bytes is not correct in connection to
trace_clocks description and it's length.
That's why use start_addr variable and record proper size based on used
entries.

Fixes: d8dd439e9f95 ("trace: Update proftool to use new binary format").
Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/proftool.c