This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new f102f6f40 trace: add trace header when dumping
f102f6f40 is described below
commit f102f6f405d0799ce4a5c0010abf46f3e98f26be
Author: yinshengkai <[email protected]>
AuthorDate: Tue Feb 7 14:49:29 2023 +0800
trace: add trace header when dumping
Signed-off-by: yinshengkai <[email protected]>
---
system/trace/trace.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/system/trace/trace.c b/system/trace/trace.c
index bb382fede..7075dfb46 100644
--- a/system/trace/trace.c
+++ b/system/trace/trace.c
@@ -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);