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


The following commit(s) were added to refs/heads/master by this push:
     new dda90dd6696 trace: replace sched_note_mark to xxx_trace_mark
dda90dd6696 is described below

commit dda90dd66963820ab3bf31ce3844a8b8e954636b
Author: yinshengkai <[email protected]>
AuthorDate: Fri Nov 13 17:45:05 2026 +0800

    trace: replace sched_note_mark to xxx_trace_mark
    
    register_driver() calls sched_note_mark(NOTE_TAG_DRIVERS, ...)
    directly, so the mark is emitted whenever note dump is enabled and
    ignores CONFIG_TRACE_DRIVERS.  Use drivers_trace_mark() like
    drivers_initialize() does, so the tracepoint follows the drivers
    trace option.
    
    Signed-off-by: yinshengkai <[email protected]>
    Signed-off-by: v-liuchenxu3 <[email protected]>
---
 fs/driver/fs_registerdriver.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/driver/fs_registerdriver.c b/fs/driver/fs_registerdriver.c
index f6c5512d6e3..1ce4e919125 100644
--- a/fs/driver/fs_registerdriver.c
+++ b/fs/driver/fs_registerdriver.c
@@ -30,7 +30,7 @@
 #include <errno.h>
 
 #include <nuttx/fs/fs.h>
-#include <nuttx/sched_note.h>
+#include <nuttx/trace.h>
 
 #include "inode/inode.h"
 #include "vfs/vfs.h"
@@ -71,7 +71,7 @@ int register_driver_with_size(FAR const char *path,
   FAR struct inode *node;
   int               ret;
 
-  sched_note_mark(NOTE_TAG_DRIVERS, path);
+  drivers_trace_mark(path);
 
   /* Insert a dummy node -- we need to hold the inode semaphore because we
    * will have a momentarily bad structure.

Reply via email to