mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH
1. If CONFIG_SCHED_INSTRUMENTATION_SWITCH is enabled, then these additional interfaces are expected:
sched_note_suspend
sched_note_resume
at the same time,If CONFIG_SMP is enabled,then expected:
sched_note_cpu_pause
sched_note_cpu_paused
sched_note_cpu_resume
sched_note_cpu_resumed
2. other board if enable SCHED_INSTRUMENTATION,SCHED_INSTRUMENTATION_SWITCH to defconfig.
This commit is contained in:
+15
-2
@@ -946,6 +946,21 @@ config SCHED_INSTRUMENTATION
|
||||
|
||||
void sched_note_start(FAR struct tcb_s *tcb);
|
||||
void sched_note_stop(FAR struct tcb_s *tcb);
|
||||
|
||||
If CONFIG_SMP is enabled, then these additional interfaces are
|
||||
expected:
|
||||
|
||||
void sched_note_cpu_start(FAR struct tcb_s *tcb, int cpu);
|
||||
void sched_note_cpu_started(FAR struct tcb_s *tcb);
|
||||
|
||||
if SCHED_INSTRUMENTATION
|
||||
|
||||
config SCHED_INSTRUMENTATION_SWITCH
|
||||
bool "Use note switch for instrumentation"
|
||||
default n
|
||||
---help---
|
||||
Use note switch for instrumentation.
|
||||
|
||||
void sched_note_suspend(FAR struct tcb_s *tcb);
|
||||
void sched_note_resume(FAR struct tcb_s *tcb);
|
||||
|
||||
@@ -962,8 +977,6 @@ config SCHED_INSTRUMENTATION
|
||||
done in these interfaces. For example, normal devices may not be
|
||||
used; syslog output cannot be performed.
|
||||
|
||||
if SCHED_INSTRUMENTATION
|
||||
|
||||
config SCHED_INSTRUMENTATION_EXTERNAL
|
||||
bool "System performance monitor endpoints are external"
|
||||
default n
|
||||
|
||||
@@ -451,6 +451,7 @@ void sched_note_stop(FAR struct tcb_s *tcb)
|
||||
sched_note_add(¬e, sizeof(struct note_stop_s));
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_SWITCH
|
||||
void sched_note_suspend(FAR struct tcb_s *tcb)
|
||||
{
|
||||
struct note_suspend_s note;
|
||||
@@ -488,6 +489,7 @@ void sched_note_resume(FAR struct tcb_s *tcb)
|
||||
|
||||
sched_note_add(¬e, sizeof(struct note_resume_s));
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
void sched_note_cpu_start(FAR struct tcb_s *tcb, int cpu)
|
||||
@@ -529,6 +531,7 @@ void sched_note_cpu_started(FAR struct tcb_s *tcb)
|
||||
sched_note_add(¬e, sizeof(struct note_cpu_started_s));
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_SWITCH
|
||||
void sched_note_cpu_pause(FAR struct tcb_s *tcb, int cpu)
|
||||
{
|
||||
struct note_cpu_pause_s note;
|
||||
@@ -607,6 +610,7 @@ void sched_note_cpu_resumed(FAR struct tcb_s *tcb)
|
||||
sched_note_add(¬e, sizeof(struct note_cpu_resumed_s));
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||
void sched_note_premption(FAR struct tcb_s *tcb, bool locked)
|
||||
|
||||
Reference in New Issue
Block a user