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

This commit is contained in:
Gregory Nutt 2016-12-24 15:44:21 -06:00
parent 36b676eea6
commit 9e8b1f32d2

View File

@ -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
};