[PATCH v2 3/3] trace: Fix alignment logic in flyrecord header
Simon Glass
sjg at chromium.org
Sat Sep 23 20:13:46 CEST 2023
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 at amd.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
Changes in v2:
- s/start_addr/start_ofs/g'
tools/proftool.c | 31 +++++++++++++++++++++++++++++--
1 file changed, 29 insertions(+), 2 deletions(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list