]> 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)
committerMichal Simek <michal.simek@amd.com>
Thu, 21 Sep 2023 11:20:12 +0000 (13:20 +0200)
commit8750d35ee295b0713d621a7d667515ef63fca246
treecf9280fa69738880ed34a7c3b162e4d1e8800a89
parentad0f3cdc219c9482c728cdbcf43cfcc2dfba04e2
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").
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/691dad64df80993ca4cfb6d0e33964ed26f50bee.1694779918.git.michal.simek@amd.com
tools/proftool.c