trace: Reduce the number of function sites
authorSimon Glass <sjg@chromium.org>
Sun, 15 Jan 2023 21:15:47 +0000 (14:15 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 11 Feb 2023 17:22:35 +0000 (12:22 -0500)
commitc3d91812a2b69fbc73eccdcec70d7ea510d7c8bd
tree5ae0a2527e8e8541c41c53159fd9a89bc79b861f
parentd9044e5363bb0b32a7aff00adf47c227f78f0f32
trace: Reduce the number of function sites

Given that the compiler adds two function calls into each function, the
current spacing is overkill. Drop it down to 16 bytes per function, which
is still plenty. This saves some space in the trace buffer.

Also move the calculation into a function, so it is common code. Add a
check for gd->mon_len being unset, which breaks tracing.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/trace.h
lib/trace.c