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 <yukangzhi@xiaomi.com>
This commit is contained in:
yukangzhi
2025-04-30 15:13:17 +08:00
committed by Xiang Xiao
parent 49cb8e08e6
commit 2f9d16372c
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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
+1
View File
@@ -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*"
1 _assert assert.h void FAR const char * int FAR const char * FAR void *
136 sched_getscheduler sched.h int pid_t
137 sched_lock sched.h void
138 sched_lockcount sched.h int
139 sched_note_event_ip nuttx/sched_note.h defined(CONFIG_SCHED_INSTRUMENTATION_DUMP) void uint32_t uintptr_t uint8_t FAR const void *
140 sched_note_vprintf_ip nuttx/sched_note.h defined(CONFIG_SCHED_INSTRUMENTATION_DUMP) void uint32_t uintptr_t FAR const IPTR char * uint32_t
141 sched_rr_get_interval sched.h int pid_t struct timespec *
142 sched_setaffinity sched.h defined(CONFIG_SMP) int pid_t size_t FAR const cpu_set_t*