
On 12/6/24 18:07, Tom Rini wrote:
On Fri, Dec 06, 2024 at 11:29:16AM +0100, Jerome Forissier wrote:
Implement a "trace clear" command to delete the currently accumulated trace data. This comes handy when someone needs to trace a particular command. For example:
=> trace clear; dhcp; trace pause => trace stats => trace calls 0x02100000 0x10000000 => tftpput $profbase $profoffset 192.168.0.16:trace.bin
Signed-off-by: Jerome Forissier jerome.forissier@linaro.org
cmd/trace.c | 13 ++++++++++++- include/trace.h | 2 ++ lib/trace.c | 47 +++++++++++++++++++++++++++++++++-------------- 3 files changed, 47 insertions(+), 15 deletions(-)
We have trace tests already, can they easily be expanded to cover this?
Sure, please check [1].
[1] https://lists.denx.de/pipermail/u-boot/2024-December/574457.html
Thanks,