From 9e8b1f32d294e6d749c0e1433643549854094905 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 24 Dec 2016 15:44:21 -0600 Subject: [PATCH] sched note: record ID enumeration now results on constant values; ID values do not change with configuration. This makes writing post-processing software much easier --- include/nuttx/sched_note.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/include/nuttx/sched_note.h b/include/nuttx/sched_note.h index 47c028b617..bd1091e950 100644 --- a/include/nuttx/sched_note.h +++ b/include/nuttx/sched_note.h @@ -76,35 +76,35 @@ enum note_type_e { - NOTE_START = 0, - NOTE_STOP, - NOTE_SUSPEND, - NOTE_RESUME + NOTE_START = 0, + NOTE_STOP = 1, + NOTE_SUSPEND = 2, + NOTE_RESUME = 3 #ifdef CONFIG_SMP , - NOTE_CPU_START, - NOTE_CPU_STARTED, - NOTE_CPU_PAUSE, - NOTE_CPU_PAUSED, - NOTE_CPU_RESUME, - NOTE_CPU_RESUMED + NOTE_CPU_START = 4, + NOTE_CPU_STARTED = 5, + NOTE_CPU_PAUSE = 6, + NOTE_CPU_PAUSED = 7, + NOTE_CPU_RESUME = 8, + NOTE_CPU_RESUMED = 9 #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION , - NOTE_PREEMPT_LOCK, - NOTE_PREEMPT_UNLOCK + NOTE_PREEMPT_LOCK = 10, + NOTE_PREEMPT_UNLOCK = 11 #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION , - NOTE_CSECTION_ENTER, - NOTE_CSECTION_LEAVE + NOTE_CSECTION_ENTER = 12, + NOTE_CSECTION_LEAVE = 13 #endif #ifdef CONFIG_SCHED_INSTRUMENTATION_SPINLOCKS , - NOTE_SPINLOCK_LOCK, - NOTE_SPINLOCK_LOCKED, - NOTE_SPINLOCK_UNLOCK, - NOTE_SPINLOCK_ABORT + NOTE_SPINLOCK_LOCK = 14, + NOTE_SPINLOCK_LOCKED = 15, + NOTE_SPINLOCK_UNLOCK = 16, + NOTE_SPINLOCK_ABORT = 17 #endif };