nuttx-apps/system/trace
chao.an 089c05cbd8 system/trace: correct arg index if command is alreay set
An error occurs when the same command is executed twice

$ trace switch +
$ trace switch +
Usage: trace <subcommand>...
Subcommand:
  start [-c][<duration>]          : Start task tracing
  stop                            : Stop task tracing
  dump [-a][-c][<filename>]           : Output the trace result
 [-a] <Android SysTrace>
  mode [{+|-}{o|w|s|a|i|d}...]        : Set task trace options
  switch [+|-] : Configure switch trace filter
  syscall [{+|-}<syscallname>...] : Configure syscall trace filter
  irq [{+|-}<irqnum>...]          : Configure IRQ trace filter
  print [+|-] : Configure dump tnsh>

Signed-off-by: chao.an <anchao@xiaomi.com>
2022-05-12 14:55:34 +08:00
..
Kconfig Add trace command for task trace 2020-10-15 16:49:11 +08:00
Make.defs Add trace command for task trace 2020-10-15 16:49:11 +08:00
Makefile Add trace command for task trace 2020-10-15 16:49:11 +08:00
README.md style/Document: remove unnecessary trailing whitespace 2020-11-28 12:20:10 +01:00
trace_dump.c system/note: correct unflatten format 2022-04-08 01:38:13 +08:00
trace.c system/trace: correct arg index if command is alreay set 2022-05-12 14:55:34 +08:00
trace.h sched/note: add support of trace section mark 2022-04-03 18:04:28 +08:00