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.git


The following commit(s) were added to refs/heads/master by this push:
     new 2f9d16372cd syscall: add sched_note_event_ip syscall for 
instrumentation dump
2f9d16372cd is described below

commit 2f9d16372cdb9f3c27e64c560e6c7a74e83a67f8
Author: yukangzhi <[email protected]>
AuthorDate: Wed Apr 30 15:13:17 2025 +0800

    syscall: add sched_note_event_ip syscall for instrumentation dump
    
    Export the sched_note_event_ip function as a syscall under
    CONFIG_SCHED_INSTRUMENTATION_DUMP. This allows user-space or
    other kernel components to trigger event-type logs via the
    instrumentation dump mechanism.
    
    Signed-off-by: yukangzhi <[email protected]>
---
 include/sys/syscall_lookup.h | 1 +
 syscall/syscall.csv          | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/sys/syscall_lookup.h b/include/sys/syscall_lookup.h
index de562af0ccb..c83fa657e66 100644
--- a/include/sys/syscall_lookup.h
+++ b/include/sys/syscall_lookup.h
@@ -401,4 +401,5 @@ SYSCALL_LOOKUP(signal,                     2)
 
 #ifdef CONFIG_SCHED_INSTRUMENTATION_DUMP
   SYSCALL_LOOKUP(sched_note_vprintf_ip,    5)
+  SYSCALL_LOOKUP(sched_note_event_ip,      5)
 #endif
diff --git a/syscall/syscall.csv b/syscall/syscall.csv
index 6bbd2645231..e2e60a27a40 100644
--- a/syscall/syscall.csv
+++ b/syscall/syscall.csv
@@ -136,6 +136,7 @@
 "sched_getscheduler","sched.h","","int","pid_t"
 "sched_lock","sched.h","","void"
 "sched_lockcount","sched.h","","int"
+"sched_note_event_ip","nuttx/sched_note.h","defined(CONFIG_SCHED_INSTRUMENTATION_DUMP)","void","uint32_t","uintptr_t","uint8_t","FAR
 const void *","size_t"
 
"sched_note_vprintf_ip","nuttx/sched_note.h","defined(CONFIG_SCHED_INSTRUMENTATION_DUMP)","void","uint32_t","uintptr_t","FAR
 const IPTR char *","uint32_t","FAR va_list *"
 "sched_rr_get_interval","sched.h","","int","pid_t","struct timespec *"
 
"sched_setaffinity","sched.h","defined(CONFIG_SMP)","int","pid_t","size_t","FAR 
const cpu_set_t*"

Reply via email to