mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-16 01:43:17 +00:00
trace dump: build error because add CONFIG_SCHED_INSTRUMENTATION_SWITCH in note driver
https://github.com/apache/incubator-nuttx/pull/4998 note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH #4998
This commit is contained in:
parent
cc8dd03b9c
commit
a2c8fa182a
2 changed files with 6 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ static void dump_notes(size_t nread)
|
|||
}
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_SWITCH
|
||||
case NOTE_SUSPEND:
|
||||
{
|
||||
FAR struct note_suspend_s *note_suspend =
|
||||
|
|
@ -250,6 +251,7 @@ static void dump_notes(size_t nread)
|
|||
#endif
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
case NOTE_CPU_START:
|
||||
|
|
@ -292,6 +294,7 @@ static void dump_notes(size_t nread)
|
|||
}
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_SWITCH
|
||||
case NOTE_CPU_PAUSE:
|
||||
{
|
||||
FAR struct note_cpu_pause_s *note_pause =
|
||||
|
|
@ -372,6 +375,7 @@ static void dump_notes(size_t nread)
|
|||
}
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||
case NOTE_PREEMPT_LOCK:
|
||||
|
|
|
|||
|
|
@ -398,6 +398,7 @@ static int trace_dump_one(FAR FILE *out,
|
|||
}
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_SWITCH
|
||||
case NOTE_SUSPEND:
|
||||
{
|
||||
FAR struct note_suspend_s *nsu = (FAR struct note_suspend_s *)p;
|
||||
|
|
@ -441,6 +442,7 @@ static int trace_dump_one(FAR FILE *out,
|
|||
}
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_SYSCALL
|
||||
case NOTE_SYSCALL_ENTER:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue