[PATCH] trace: use dynamic string buffer in make_flamegraph()

Tom Rini trini at konsulko.com
Wed Apr 10 19:43:29 CEST 2024


On Tue, 02 Apr 2024 13:29:16 +0200, Vincent Stehlé wrote:

> The str[] buffer declared in make_flamegraph() is used to hold strings
> representing the full call-stacks recorded in traces. The size of this
> buffer is currently 500 characters and this works well for the documented
> examples.
> 
> However, it is possible to exhaust this buffer when processing traces
> captured when running the UEFI shell on aarch64 sandbox for example.
> Indeed, the maximum length needed for such traces can reach 780 characters.
> 
> [...]

Applied to u-boot/master, thanks!

-- 
Tom




More information about the U-Boot mailing list