This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 66fe780acae3c3d0f0ef954610ea68c40a698a34 Author: yangao1 <[email protected]> AuthorDate: Fri Jan 10 16:47:04 2025 +0800 drivers/note/noteram_driver.c: modify the trace print format for perfetto The text dump writes a printf note as "tracing_mark_write: <message>". That is not one of the marker forms that the dump uses for its other events (B|, E|, C| and I|<pid>|...) and that systrace viewers such as Perfetto parse. Write it as an instant event, "I|<pid>|<message>", like the wdog notes, so the message shows up on the track of the task. Assisted-by: Kiro:claude-opus-5-5 Signed-off-by: yangao1 <[email protected]> --- drivers/note/noteram_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/note/noteram_driver.c b/drivers/note/noteram_driver.c index 18d5a8b498a..81dba7a9d04 100644 --- a/drivers/note/noteram_driver.c +++ b/drivers/note/noteram_driver.c @@ -1222,7 +1222,7 @@ static int noteram_dump_one(FAR uint8_t *p, FAR struct lib_outstream_s *s, npt = (FAR struct note_printf_s *)p; ret += noteram_dump_header(s, &npt->npt_cmn, ctx); - ret += lib_sprintf(s, "tracing_mark_write: "); + ret += lib_sprintf(s, "tracing_mark_write: I|%d|", pid); ret += noteram_dump_printf(s, npt); } break;
