mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
trace: add trace header when dumping
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
ecadbbb43c
commit
f102f6f405
1 changed files with 4 additions and 0 deletions
|
|
@ -199,6 +199,10 @@ static int trace_cmd_dump(int index, int argc, FAR char **argv,
|
|||
changed = notectl_enable(false, notectlfd);
|
||||
}
|
||||
|
||||
/* Dump the trace header */
|
||||
|
||||
fputs("# tracer: nop\n#\n", out);
|
||||
|
||||
/* Dump the trace data */
|
||||
|
||||
ret = trace_dump(type, out);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue