trace: add trace header when dumping
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
ecadbbb43c
commit
f102f6f405
@ -199,6 +199,10 @@ static int trace_cmd_dump(int index, int argc, FAR char **argv,
|
|||||||
changed = notectl_enable(false, notectlfd);
|
changed = notectl_enable(false, notectlfd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Dump the trace header */
|
||||||
|
|
||||||
|
fputs("# tracer: nop\n#\n", out);
|
||||||
|
|
||||||
/* Dump the trace data */
|
/* Dump the trace data */
|
||||||
|
|
||||||
ret = trace_dump(type, out);
|
ret = trace_dump(type, out);
|
||||||
|
Loading…
Reference in New Issue
Block a user