1 /* 2 * WARNING: This file is autogenerated from gen_enum_defs.py [1]. 3 * 4 * scx enumerator values from the vmlinux.h this tree is built against. 5 * Used as the substitution source when the running kernel's BTF lacks 6 * BTF_KIND_ENUM64 encoding and 64-bit enum values are truncated. 7 * 8 * [1] https://github.com/sched-ext/scx/blob/main/scripts/gen_enum_defs.py 9 */ 10 11 #ifndef __ENUMS_ABI_AUTOGEN_H__ 12 #define __ENUMS_ABI_AUTOGEN_H__ 13 14 struct __scx_enum_abi_val { 15 const char *type; 16 const char *name; 17 u64 val; 18 }; 19 20 static const struct __scx_enum_abi_val __scx_enum_abi_vals[] 21 __attribute__((unused)) = { 22 { "scx_arena_consts", "SCX_ARENA_MIN_ORDER", 0x3LLU }, 23 { "scx_arena_consts", "SCX_ARENA_GROW_PAGES", 0x4LLU }, 24 { "scx_cap_flags", "__SCX_CAP_ENQ_IMMED", 0x0LLU }, 25 { "scx_cap_flags", "__SCX_CAP_ENQ", 0x1LLU }, 26 { "scx_cap_flags", "__SCX_CAP_PREEMPT", 0x2LLU }, 27 { "scx_cap_flags", "__SCX_CAP_PERF", 0x3LLU }, 28 { "scx_cap_flags", "__SCX_NR_CAPS", 0x4LLU }, 29 { "scx_cap_flags", "__SCX_CAP_ALL", 0xfLLU }, 30 { "scx_cap_flags", "SCX_CAP_ENQ_IMMED", 0x1LLU }, 31 { "scx_cap_flags", "SCX_CAP_ENQ", 0x2LLU }, 32 { "scx_cap_flags", "SCX_CAP_PREEMPT", 0x4LLU }, 33 { "scx_cap_flags", "SCX_CAP_PERF", 0x8LLU }, 34 { "scx_cap_flags", "SCX_CAP_BASE", 0x1LLU }, 35 { "scx_cap_flags", "SCX_CAPS_REENQ_ON_LOSS", 0x3LLU }, 36 { "scx_cid_consts", "SCX_CID_SHARD_SIZE_DFL", 0x18LLU }, 37 { "scx_cid_consts", "SCX_CID_SHARD_MAX_CPUS", 0x200LLU }, 38 { "scx_consts", "SCX_DSP_DFL_MAX_BATCH", 0x20LLU }, 39 { "scx_consts", "SCX_DSP_MAX_LOOPS", 0x20LLU }, 40 { "scx_consts", "SCX_WATCHDOG_MAX_TIMEOUT", 0x7530LLU }, 41 { "scx_consts", "SCX_RESCUE_DFL_BW_PPT", 0x14LLU }, 42 { "scx_consts", "SCX_RESCUE_MAX_BW_PPT", 0xfaLLU }, 43 { "scx_consts", "SCX_RESCUE_DISABLE", 0xffffffffLLU }, 44 { "scx_consts", "SCX_RESCUE_DFL_QUANTUM_US", 0x1388LLU }, 45 { "scx_consts", "SCX_RESCUE_MIN_QUANTUM_US", 0x3e8LLU }, 46 { "scx_consts", "SCX_RESCUE_MAX_QUANTUM_US", 0x186a0LLU }, 47 { "scx_consts", "SCX_RESCUE_MIN_SLICE_US", 0x3e8LLU }, 48 { "scx_consts", "SCX_RESCUE_OVERLOAD_MULT", 0x10LLU }, 49 { "scx_consts", "SCX_RESCUE_MIN_OVERLOAD_MS", 0x3e8LLU }, 50 { "scx_consts", "SCX_RESCUE_MAX_OVERLOAD_MS", 0x3a98LLU }, 51 { "scx_consts", "SCX_TID_CHUNK", 0x400LLU }, 52 { "scx_consts", "SCX_EXIT_BT_LEN", 0x40LLU }, 53 { "scx_consts", "SCX_EXIT_MSG_LEN", 0x400LLU }, 54 { "scx_consts", "SCX_EXIT_DUMP_DFL_LEN", 0x8000LLU }, 55 { "scx_consts", "SCX_CPUPERF_ONE", 0x400LLU }, 56 { "scx_consts", "SCX_TASK_ITER_BATCH", 0x20LLU }, 57 { "scx_consts", "SCX_BYPASS_HOST_NTH", 0x2LLU }, 58 { "scx_consts", "SCX_BYPASS_LB_DFL_INTV_US", 0x7a120LLU }, 59 { "scx_consts", "SCX_BYPASS_LB_DONOR_PCT", 0x7dLLU }, 60 { "scx_consts", "SCX_BYPASS_LB_MIN_DELTA_DIV", 0x4LLU }, 61 { "scx_consts", "SCX_BYPASS_LB_BATCH", 0x100LLU }, 62 { "scx_consts", "SCX_REENQ_MAX_REPEAT", 0x100LLU }, 63 { "scx_consts", "SCX_SUB_MAX_DEPTH", 0x4LLU }, 64 { "scx_cpu_preempt_reason", "SCX_CPU_PREEMPT_RT", 0x0LLU }, 65 { "scx_cpu_preempt_reason", "SCX_CPU_PREEMPT_DL", 0x1LLU }, 66 { "scx_cpu_preempt_reason", "SCX_CPU_PREEMPT_STOP", 0x2LLU }, 67 { "scx_cpu_preempt_reason", "SCX_CPU_PREEMPT_UNKNOWN", 0x3LLU }, 68 { "scx_deq_flags", "SCX_DEQ_SLEEP", 0x1LLU }, 69 { "scx_deq_flags", "SCX_DEQ_CORE_SCHED_EXEC", 0x100000000LLU }, 70 { "scx_deq_flags", "SCX_DEQ_SCHED_CHANGE", 0x200000000LLU }, 71 { "scx_dsp_verdict", "SCX_DSP_NONE", 0x0LLU }, 72 { "scx_dsp_verdict", "SCX_DSP_LOCAL", 0x1LLU }, 73 { "scx_dsp_verdict", "SCX_DSP_PREV", 0x2LLU }, 74 { "scx_dsp_verdict", "SCX_DSP_RETRY", 0x3LLU }, 75 { "scx_dsq_id_flags", "SCX_DSQ_FLAG_BUILTIN", 0x8000000000000000LLU }, 76 { "scx_dsq_id_flags", "SCX_DSQ_FLAG_LOCAL_ON", 0x4000000000000000LLU }, 77 { "scx_dsq_id_flags", "SCX_DSQ_INVALID", 0x8000000000000000LLU }, 78 { "scx_dsq_id_flags", "SCX_DSQ_GLOBAL", 0x8000000000000001LLU }, 79 { "scx_dsq_id_flags", "SCX_DSQ_LOCAL", 0x8000000000000002LLU }, 80 { "scx_dsq_id_flags", "SCX_DSQ_BYPASS", 0x8000000000000003LLU }, 81 { "scx_dsq_id_flags", "SCX_DSQ_REJECT", 0x8000000000000004LLU }, 82 { "scx_dsq_id_flags", "SCX_DSQ_RESCUE", 0x8000000000000005LLU }, 83 { "scx_dsq_id_flags", "SCX_DSQ_LOCAL_ON", 0xc000000000000000LLU }, 84 { "scx_dsq_id_flags", "SCX_DSQ_LOCAL_CPU_MASK", 0xffffffffLLU }, 85 { "scx_dsq_iter_flags", "SCX_DSQ_ITER_REV", 0x10000LLU }, 86 { "scx_dsq_iter_flags", "__SCX_DSQ_ITER_HAS_SLICE", 0x40000000LLU }, 87 { "scx_dsq_iter_flags", "__SCX_DSQ_ITER_HAS_VTIME", 0x80000000LLU }, 88 { "scx_dsq_iter_flags", "__SCX_DSQ_ITER_USER_FLAGS", 0x10000LLU }, 89 { "scx_dsq_iter_flags", "__SCX_DSQ_ITER_ALL_FLAGS", 0xc0010000LLU }, 90 { "scx_dsq_lnode_flags", "SCX_DSQ_LNODE_ITER_CURSOR", 0x1LLU }, 91 { "scx_dsq_lnode_flags", "__SCX_DSQ_LNODE_PRIV_SHIFT", 0x10LLU }, 92 { "scx_enable_state", "SCX_ENABLING", 0x0LLU }, 93 { "scx_enable_state", "SCX_ENABLED", 0x1LLU }, 94 { "scx_enable_state", "SCX_DISABLING", 0x2LLU }, 95 { "scx_enable_state", "SCX_DISABLED", 0x3LLU }, 96 { "scx_enq_flags", "SCX_ENQ_WAKEUP", 0x1LLU }, 97 { "scx_enq_flags", "SCX_ENQ_HEAD", 0x10000LLU }, 98 { "scx_enq_flags", "SCX_ENQ_CPU_SELECTED", 0x100000LLU }, 99 { "scx_enq_flags", "SCX_ENQ_PREEMPT", 0x100000000LLU }, 100 { "scx_enq_flags", "SCX_ENQ_IMMED", 0x200000000LLU }, 101 { "scx_enq_flags", "SCX_ENQ_RESCUE", 0x400000000LLU }, 102 { "scx_enq_flags", "SCX_ENQ_REENQ", 0x10000000000LLU }, 103 { "scx_enq_flags", "SCX_ENQ_LAST", 0x20000000000LLU }, 104 { "scx_enq_flags", "__SCX_ENQ_INTERNAL_MASK", 0xff00000000000000LLU }, 105 { "scx_enq_flags", "SCX_ENQ_CLEAR_OPSS", 0x100000000000000LLU }, 106 { "scx_enq_flags", "SCX_ENQ_DSQ_PRIQ", 0x200000000000000LLU }, 107 { "scx_enq_flags", "SCX_ENQ_NESTED", 0x400000000000000LLU }, 108 { "scx_enq_flags", "SCX_ENQ_GDSQ_FALLBACK", 0x800000000000000LLU }, 109 { "scx_enq_flags", "SCX_ENQ_IGNORE_CAPS", 0x1000000000000000LLU }, 110 { "scx_enq_flags", "SCX_ENQ_APPLY_SLICE", 0x2000000000000000LLU }, 111 { "scx_enq_flags", "SCX_ENQ_SLICE_DFL", 0x4000000000000000LLU }, 112 { "scx_ent_dsq_flags", "SCX_TASK_DSQ_ON_PRIQ", 0x1LLU }, 113 { "scx_ent_flags", "SCX_TASK_QUEUED", 0x1LLU }, 114 { "scx_ent_flags", "SCX_TASK_IN_CUSTODY", 0x2LLU }, 115 { "scx_ent_flags", "SCX_TASK_RESET_RUNNABLE_AT", 0x4LLU }, 116 { "scx_ent_flags", "SCX_TASK_DEQD_FOR_SLEEP", 0x8LLU }, 117 { "scx_ent_flags", "SCX_TASK_SUB_INIT", 0x10LLU }, 118 { "scx_ent_flags", "SCX_TASK_IMMED", 0x20LLU }, 119 { "scx_ent_flags", "SCX_TASK_PROTECTED", 0x40LLU }, 120 { "scx_ent_flags", "SCX_TASK_STATE_SHIFT", 0x8LLU }, 121 { "scx_ent_flags", "SCX_TASK_STATE_BITS", 0x3LLU }, 122 { "scx_ent_flags", "SCX_TASK_STATE_MASK", 0x700LLU }, 123 { "scx_ent_flags", "SCX_TASK_NONE", 0x0LLU }, 124 { "scx_ent_flags", "SCX_TASK_INIT_BEGIN", 0x100LLU }, 125 { "scx_ent_flags", "SCX_TASK_INIT", 0x200LLU }, 126 { "scx_ent_flags", "SCX_TASK_READY", 0x300LLU }, 127 { "scx_ent_flags", "SCX_TASK_ENABLED", 0x400LLU }, 128 { "scx_ent_flags", "SCX_TASK_DEAD", 0x500LLU }, 129 { "scx_ent_flags", "SCX_TASK_REENQ_REASON_SHIFT", 0xcLLU }, 130 { "scx_ent_flags", "SCX_TASK_REENQ_REASON_BITS", 0x3LLU }, 131 { "scx_ent_flags", "SCX_TASK_REENQ_REASON_MASK", 0x7000LLU }, 132 { "scx_ent_flags", "SCX_TASK_REENQ_NONE", 0x0LLU }, 133 { "scx_ent_flags", "SCX_TASK_REENQ_KFUNC", 0x1000LLU }, 134 { "scx_ent_flags", "SCX_TASK_REENQ_IMMED", 0x2000LLU }, 135 { "scx_ent_flags", "SCX_TASK_REENQ_PREEMPTED", 0x3000LLU }, 136 { "scx_ent_flags", "SCX_TASK_REENQ_CAP", 0x4000LLU }, 137 { "scx_ent_flags", "SCX_TASK_CURSOR", 0xffffffff80000000LLU }, 138 { "scx_exit_code", "SCX_ECODE_RSN_HOTPLUG", 0x100000000LLU }, 139 { "scx_exit_code", "SCX_ECODE_RSN_CGROUP_OFFLINE", 0x200000000LLU }, 140 { "scx_exit_code", "SCX_ECODE_ACT_RESTART", 0x1000000000000LLU }, 141 { "scx_exit_flags", "SCX_EFLAG_INITIALIZED", 0x1LLU }, 142 { "scx_exit_kind", "SCX_EXIT_NONE", 0x0LLU }, 143 { "scx_exit_kind", "SCX_EXIT_DONE", 0x1LLU }, 144 { "scx_exit_kind", "SCX_EXIT_UNREG", 0x40LLU }, 145 { "scx_exit_kind", "SCX_EXIT_UNREG_BPF", 0x41LLU }, 146 { "scx_exit_kind", "SCX_EXIT_UNREG_KERN", 0x42LLU }, 147 { "scx_exit_kind", "SCX_EXIT_SYSRQ", 0x43LLU }, 148 { "scx_exit_kind", "SCX_EXIT_PARENT", 0x44LLU }, 149 { "scx_exit_kind", "SCX_EXIT_PARENT_KILL", 0x45LLU }, 150 { "scx_exit_kind", "SCX_EXIT_ERROR", 0x400LLU }, 151 { "scx_exit_kind", "SCX_EXIT_ERROR_BPF", 0x401LLU }, 152 { "scx_exit_kind", "SCX_EXIT_ERROR_STALL", 0x402LLU }, 153 { "scx_exit_kind", "SCX_EXIT_ERROR_REENQ", 0x403LLU }, 154 { "scx_exit_kind", "SCX_EXIT_ERROR_RESCUE", 0x404LLU }, 155 { "scx_kf_allow_flags", "SCX_KF_ALLOW_UNLOCKED", 0x1LLU }, 156 { "scx_kf_allow_flags", "SCX_KF_ALLOW_INIT_CIDS", 0x2LLU }, 157 { "scx_kf_allow_flags", "SCX_KF_ALLOW_CPU_RELEASE", 0x4LLU }, 158 { "scx_kf_allow_flags", "SCX_KF_ALLOW_DISPATCH", 0x8LLU }, 159 { "scx_kf_allow_flags", "SCX_KF_ALLOW_ENQUEUE", 0x10LLU }, 160 { "scx_kf_allow_flags", "SCX_KF_ALLOW_SELECT_CPU", 0x20LLU }, 161 { "scx_kick_flags", "SCX_KICK_IDLE", 0x1LLU }, 162 { "scx_kick_flags", "SCX_KICK_PREEMPT", 0x2LLU }, 163 { "scx_kick_flags", "SCX_KICK_WAIT", 0x4LLU }, 164 { "scx_opi", "SCX_OPI_BEGIN", 0x0LLU }, 165 { "scx_opi", "SCX_OPI_NORMAL_BEGIN", 0x0LLU }, 166 { "scx_opi", "SCX_OPI_NORMAL_END", 0x21LLU }, 167 { "scx_opi", "SCX_OPI_CPU_HOTPLUG_BEGIN", 0x21LLU }, 168 { "scx_opi", "SCX_OPI_CPU_HOTPLUG_END", 0x23LLU }, 169 { "scx_opi", "SCX_OPI_END", 0x23LLU }, 170 { "scx_ops_flags", "SCX_OPS_KEEP_BUILTIN_IDLE", 0x1LLU }, 171 { "scx_ops_flags", "SCX_OPS_ENQ_LAST", 0x2LLU }, 172 { "scx_ops_flags", "SCX_OPS_ENQ_EXITING", 0x4LLU }, 173 { "scx_ops_flags", "SCX_OPS_SWITCH_PARTIAL", 0x8LLU }, 174 { "scx_ops_flags", "SCX_OPS_ENQ_MIGRATION_DISABLED", 0x10LLU }, 175 { "scx_ops_flags", "SCX_OPS_ALLOW_QUEUED_WAKEUP", 0x20LLU }, 176 { "scx_ops_flags", "SCX_OPS_BUILTIN_IDLE_PER_NODE", 0x40LLU }, 177 { "scx_ops_flags", "SCX_OPS_ALWAYS_ENQ_IMMED", 0x80LLU }, 178 { "scx_ops_flags", "SCX_OPS_TID_TO_TASK", 0x100LLU }, 179 { "scx_ops_flags", "SCX_OPS_ALL_FLAGS", 0x1ffLLU }, 180 { "scx_ops_flags", "__SCX_OPS_INTERNAL_MASK", 0xff00000000000000LLU }, 181 { "scx_ops_flags", "SCX_OPS_HAS_CPU_PREEMPT", 0x100000000000000LLU }, 182 { "scx_ops_state", "SCX_OPSS_NONE", 0x0LLU }, 183 { "scx_ops_state", "SCX_OPSS_QUEUEING", 0x1LLU }, 184 { "scx_ops_state", "SCX_OPSS_QUEUED", 0x2LLU }, 185 { "scx_ops_state", "SCX_OPSS_DISPATCHING", 0x3LLU }, 186 { "scx_ops_state", "SCX_OPSS_QSEQ_SHIFT", 0x2LLU }, 187 { "scx_pick_idle_cpu_flags", "SCX_PICK_IDLE_CORE", 0x1LLU }, 188 { "scx_pick_idle_cpu_flags", "SCX_PICK_IDLE_IN_NODE", 0x2LLU }, 189 { "scx_public_consts", "SCX_OPS_NAME_LEN", 0x80LLU }, 190 { "scx_public_consts", "SCX_SLICE_DFL", 0x1312d00LLU }, 191 { "scx_public_consts", "SCX_SLICE_BYPASS", 0x4c4b40LLU }, 192 { "scx_public_consts", "SCX_SLICE_INF", 0xffffffffffffffffLLU }, 193 { "scx_reenq_flags", "SCX_REENQ_ANY", 0x1LLU }, 194 { "scx_reenq_flags", "SCX_REENQ_CAP_REVOKE", 0x2LLU }, 195 { "scx_reenq_flags", "__SCX_REENQ_FILTER_MASK", 0xffffLLU }, 196 { "scx_reenq_flags", "__SCX_REENQ_USER_MASK", 0x1LLU }, 197 { "scx_reenq_flags", "SCX_REENQ_TSR_RQ_OPEN", 0x100000000LLU }, 198 { "scx_reenq_flags", "SCX_REENQ_TSR_NOT_FIRST", 0x200000000LLU }, 199 { "scx_reenq_flags", "__SCX_REENQ_TSR_MASK", 0xf00000000LLU }, 200 { "scx_rq_flags", "SCX_RQ_ONLINE", 0x1LLU }, 201 { "scx_rq_flags", "SCX_RQ_CAN_STOP_TICK", 0x2LLU }, 202 { "scx_rq_flags", "SCX_RQ_CLK_VALID", 0x20LLU }, 203 { "scx_rq_flags", "SCX_RQ_BAL_CB_PENDING", 0x40LLU }, 204 { "scx_rq_flags", "SCX_RQ_SUB_IDLE_RENOTIFY", 0x80LLU }, 205 { "scx_rq_flags", "SCX_RQ_ROOT_IDLE_RENOTIFY", 0x100LLU }, 206 { "scx_rq_flags", "SCX_RQ_IN_WAKEUP", 0x10000LLU }, 207 { "scx_rq_flags", "SCX_RQ_IN_DISPATCH", 0x20000LLU }, 208 { "scx_sched_pcpu_flags", "SCX_SCHED_PCPU_BYPASSING", 0x1LLU }, 209 { "scx_slice_oob_consts", "SCX_SLICE_OOB_DUR_BITS", 0x2bLLU }, 210 { "scx_slice_oob_consts", "SCX_SLICE_OOB_ID_BITS", 0x14LLU }, 211 { "scx_slice_oob_consts", "SCX_SLICE_OOB_DUR_MASK", 0x7ffffffffffLLU }, 212 { "scx_slice_oob_consts", "SCX_SLICE_OOB_ID_SHIFT", 0x2bLLU }, 213 { "scx_slice_oob_consts", "SCX_SLICE_OOB_ID_MASK", 0xfffffLLU }, 214 { "scx_slice_oob_consts", "SCX_SLICE_OOB_PENDING", 0x8000000000000000LLU }, 215 { "scx_tg_flags", "SCX_TG_ONLINE", 0x1LLU }, 216 { "scx_tg_flags", "SCX_TG_INITED", 0x2LLU }, 217 { "scx_tg_flags", "SCX_TG_SUB_INIT", 0x4LLU }, 218 { "scx_wake_flags", "SCX_WAKE_FORK", 0x4LLU }, 219 { "scx_wake_flags", "SCX_WAKE_TTWU", 0x8LLU }, 220 { "scx_wake_flags", "SCX_WAKE_SYNC", 0x10LLU }, 221 }; 222 223 #endif /* __ENUMS_ABI_AUTOGEN_H__ */ 224