trace: add support for 'trace wipe'
authorJerome Forissier <jerome.forissier@linaro.org>
Fri, 13 Dec 2024 12:45:36 +0000 (13:45 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 1 Jan 2025 01:00:46 +0000 (19:00 -0600)
commit60a684e0a9f341d96c30ce0e1e472d7a203c85aa
tree601b5741220ea12963a8af890c7c8984caeb0206
parentc3c20a5e3c04c7c9e0866812f6b615ec15af06d9
trace: add support for 'trace wipe'

Implement a 'trace wipe' command to delete the currently accumulated
trace data. This comes handy when someone needs to trace a particular
command. For example:

  => trace pause; trace wipe
  => trace resume; 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>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
cmd/trace.c
include/trace.h
lib/trace.c