trace: add trace header when dumping

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-02-07 14:49:29 +08:00 committed by Xiang Xiao
parent ecadbbb43c
commit f102f6f405

View File

@ -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);