
6 Dec
2024
6 Dec
'24
6:07 p.m.
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?
--
Tom