]> git.dujemihanovic.xyz Git - u-boot.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)
commite278ad9a2ea5e4a089773a8fd79a5ea0e8572316
tree97e9fe98dfc5b00ef2211fa1c1c65a7022612798
parent5ae43b8706c8897cbd711dbb0f023703b08b5fd3
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: be16fc81b2ed ("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