[PATCH] trace: add support for "trace clear"

Tom Rini trini at konsulko.com
Fri Dec 6 18:07:16 CET 2024


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 at 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?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20241206/c3ede208/attachment.sig>


More information about the U-Boot mailing list