diff options
| author | Jerome Forissier <[email protected]> | 2024-12-13 13:45:36 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-12-31 19:00:46 -0600 |
| commit | 60a684e0a9f341d96c30ce0e1e472d7a203c85aa (patch) | |
| tree | 601b5741220ea12963a8af890c7c8984caeb0206 /include/trace.h | |
| parent | c3c20a5e3c04c7c9e0866812f6b615ec15af06d9 (diff) | |
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 <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include/trace.h')
| -rw-r--r-- | include/trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/trace.h b/include/trace.h index 763d6d1255a..782eaae2fc2 100644 --- a/include/trace.h +++ b/include/trace.h @@ -100,6 +100,8 @@ void trace_set_enabled(int enabled); int trace_early_init(void); +int trace_clear(void); + /** * Init the trace system * |
