xref: /linux/tools/sched_ext/include/scx/enums.autogen.h (revision bc8198dc7ebc492ec3e9fa1617dcdfbe98e73b17)
1*8da7bf2cSTejun Heo /*
2*8da7bf2cSTejun Heo  * WARNING: This file is autogenerated from scripts/gen_enums.py. If you would
3*8da7bf2cSTejun Heo  * like to access an enum that is currently missing, add it to the script
4*8da7bf2cSTejun Heo  * and run it from the root directory to update this file.
5*8da7bf2cSTejun Heo  */
6*8da7bf2cSTejun Heo 
7*8da7bf2cSTejun Heo #define SCX_ENUM_INIT(skel) do { \
8*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_public_consts, SCX_OPS_NAME_LEN); \
9*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_public_consts, SCX_SLICE_DFL); \
10*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_public_consts, SCX_SLICE_INF); \
11*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_dsq_id_flags, SCX_DSQ_FLAG_BUILTIN); \
12*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_dsq_id_flags, SCX_DSQ_FLAG_LOCAL_ON); \
13*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_dsq_id_flags, SCX_DSQ_INVALID); \
14*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_dsq_id_flags, SCX_DSQ_GLOBAL); \
15*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_dsq_id_flags, SCX_DSQ_LOCAL); \
16*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_dsq_id_flags, SCX_DSQ_LOCAL_ON); \
17*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_dsq_id_flags, SCX_DSQ_LOCAL_CPU_MASK); \
18*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_ent_flags, SCX_TASK_QUEUED); \
19*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_ent_flags, SCX_TASK_RESET_RUNNABLE_AT); \
20*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_ent_flags, SCX_TASK_DEQD_FOR_SLEEP); \
21*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_ent_flags, SCX_TASK_STATE_SHIFT); \
22*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_ent_flags, SCX_TASK_STATE_BITS); \
23*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_ent_flags, SCX_TASK_STATE_MASK); \
24*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_ent_flags, SCX_TASK_CURSOR); \
25*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_task_state, SCX_TASK_NONE); \
26*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_task_state, SCX_TASK_INIT); \
27*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_task_state, SCX_TASK_READY); \
28*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_task_state, SCX_TASK_ENABLED); \
29*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_task_state, SCX_TASK_NR_STATES); \
30*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_ent_dsq_flags, SCX_TASK_DSQ_ON_PRIQ); \
31*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_kick_flags, SCX_KICK_IDLE); \
32*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_kick_flags, SCX_KICK_PREEMPT); \
33*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_kick_flags, SCX_KICK_WAIT); \
34*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_WAKEUP); \
35*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_HEAD); \
36*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_PREEMPT); \
37*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_REENQ); \
38*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_LAST); \
39*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_CLEAR_OPSS); \
40*8da7bf2cSTejun Heo 	SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_DSQ_PRIQ); \
41*8da7bf2cSTejun Heo } while (0)
42