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
..
2022-04-19 18:21:00 +08:00
2021-06-11 02:42:05 -05:00
2021-06-11 02:42:05 -05:00
2022-05-04 18:08:07 +03:00
2021-06-11 02:42:05 -05:00
2021-12-20 09:12:52 -06:00
2021-06-11 02:42:05 -05:00
2021-06-11 02:42:05 -05:00
2021-06-16 09:03:06 -05:00
2022-03-31 16:59:16 +08:00
2021-05-23 23:57:25 +01:00
2022-03-14 18:46:07 +08:00
2021-06-11 02:42:05 -05:00
2021-06-11 02:42:05 -05:00
2021-06-11 02:42:05 -05:00
2022-01-16 08:07:47 +01:00
2021-06-11 02:42:05 -05:00
2022-01-06 10:30:41 +08:00