scx_utils 1.1.3

Utilities for sched_ext schedulers
Documentation
// WARNING: This file is autogenerated from gen_enum_defs.py [1].
//
// scx enumerator values from the vmlinux.h this tree is built against.
// Used as the substitution source when the running kernel's BTF lacks
// BTF_KIND_ENUM64 encoding and 64-bit enum values are truncated.
//
// [1] https://github.com/sched-ext/scx/blob/main/scripts/gen_enum_defs.py

/// (enum type name, enumerator name, value) triples from vmlinux.h.
pub const ENUM_ABI_VALUES: &[(&str, &str, u64)] = &[
    ("scx_arena_consts", "SCX_ARENA_MIN_ORDER", 0x3),
    ("scx_arena_consts", "SCX_ARENA_GROW_PAGES", 0x4),
    ("scx_cap_flags", "__SCX_CAP_ENQ_IMMED", 0x0),
    ("scx_cap_flags", "__SCX_CAP_ENQ", 0x1),
    ("scx_cap_flags", "__SCX_CAP_PREEMPT", 0x2),
    ("scx_cap_flags", "__SCX_CAP_PERF", 0x3),
    ("scx_cap_flags", "__SCX_NR_CAPS", 0x4),
    ("scx_cap_flags", "__SCX_CAP_ALL", 0xf),
    ("scx_cap_flags", "SCX_CAP_ENQ_IMMED", 0x1),
    ("scx_cap_flags", "SCX_CAP_ENQ", 0x2),
    ("scx_cap_flags", "SCX_CAP_PREEMPT", 0x4),
    ("scx_cap_flags", "SCX_CAP_PERF", 0x8),
    ("scx_cap_flags", "SCX_CAP_BASE", 0x1),
    ("scx_cap_flags", "SCX_CAPS_REENQ_ON_LOSS", 0x3),
    ("scx_cid_consts", "SCX_CID_SHARD_SIZE_DFL", 0x18),
    ("scx_cid_consts", "SCX_CID_SHARD_MAX_CPUS", 0x200),
    ("scx_consts", "SCX_DSP_DFL_MAX_BATCH", 0x20),
    ("scx_consts", "SCX_DSP_MAX_LOOPS", 0x20),
    ("scx_consts", "SCX_WATCHDOG_MAX_TIMEOUT", 0x7530),
    ("scx_consts", "SCX_RESCUE_DFL_BW_PPT", 0x14),
    ("scx_consts", "SCX_RESCUE_MAX_BW_PPT", 0xfa),
    ("scx_consts", "SCX_RESCUE_DISABLE", 0xffffffff),
    ("scx_consts", "SCX_RESCUE_DFL_QUANTUM_US", 0x1388),
    ("scx_consts", "SCX_RESCUE_MIN_QUANTUM_US", 0x3e8),
    ("scx_consts", "SCX_RESCUE_MAX_QUANTUM_US", 0x186a0),
    ("scx_consts", "SCX_RESCUE_MIN_SLICE_US", 0x3e8),
    ("scx_consts", "SCX_RESCUE_OVERLOAD_MULT", 0x10),
    ("scx_consts", "SCX_RESCUE_MIN_OVERLOAD_MS", 0x3e8),
    ("scx_consts", "SCX_RESCUE_MAX_OVERLOAD_MS", 0x3a98),
    ("scx_consts", "SCX_TID_CHUNK", 0x400),
    ("scx_consts", "SCX_EXIT_BT_LEN", 0x40),
    ("scx_consts", "SCX_EXIT_MSG_LEN", 0x400),
    ("scx_consts", "SCX_EXIT_DUMP_DFL_LEN", 0x8000),
    ("scx_consts", "SCX_CPUPERF_ONE", 0x400),
    ("scx_consts", "SCX_TASK_ITER_BATCH", 0x20),
    ("scx_consts", "SCX_BYPASS_HOST_NTH", 0x2),
    ("scx_consts", "SCX_BYPASS_LB_DFL_INTV_US", 0x7a120),
    ("scx_consts", "SCX_BYPASS_LB_DONOR_PCT", 0x7d),
    ("scx_consts", "SCX_BYPASS_LB_MIN_DELTA_DIV", 0x4),
    ("scx_consts", "SCX_BYPASS_LB_BATCH", 0x100),
    ("scx_consts", "SCX_REENQ_MAX_REPEAT", 0x100),
    ("scx_consts", "SCX_SUB_MAX_DEPTH", 0x4),
    ("scx_cpu_preempt_reason", "SCX_CPU_PREEMPT_RT", 0x0),
    ("scx_cpu_preempt_reason", "SCX_CPU_PREEMPT_DL", 0x1),
    ("scx_cpu_preempt_reason", "SCX_CPU_PREEMPT_STOP", 0x2),
    ("scx_cpu_preempt_reason", "SCX_CPU_PREEMPT_UNKNOWN", 0x3),
    ("scx_deq_flags", "SCX_DEQ_SLEEP", 0x1),
    ("scx_deq_flags", "SCX_DEQ_CORE_SCHED_EXEC", 0x100000000),
    ("scx_deq_flags", "SCX_DEQ_SCHED_CHANGE", 0x200000000),
    ("scx_dsp_verdict", "SCX_DSP_NONE", 0x0),
    ("scx_dsp_verdict", "SCX_DSP_LOCAL", 0x1),
    ("scx_dsp_verdict", "SCX_DSP_PREV", 0x2),
    ("scx_dsp_verdict", "SCX_DSP_RETRY", 0x3),
    ("scx_dsq_id_flags", "SCX_DSQ_FLAG_BUILTIN", 0x8000000000000000),
    ("scx_dsq_id_flags", "SCX_DSQ_FLAG_LOCAL_ON", 0x4000000000000000),
    ("scx_dsq_id_flags", "SCX_DSQ_INVALID", 0x8000000000000000),
    ("scx_dsq_id_flags", "SCX_DSQ_GLOBAL", 0x8000000000000001),
    ("scx_dsq_id_flags", "SCX_DSQ_LOCAL", 0x8000000000000002),
    ("scx_dsq_id_flags", "SCX_DSQ_BYPASS", 0x8000000000000003),
    ("scx_dsq_id_flags", "SCX_DSQ_REJECT", 0x8000000000000004),
    ("scx_dsq_id_flags", "SCX_DSQ_RESCUE", 0x8000000000000005),
    ("scx_dsq_id_flags", "SCX_DSQ_LOCAL_ON", 0xc000000000000000),
    ("scx_dsq_id_flags", "SCX_DSQ_LOCAL_CPU_MASK", 0xffffffff),
    ("scx_dsq_iter_flags", "SCX_DSQ_ITER_REV", 0x10000),
    ("scx_dsq_iter_flags", "__SCX_DSQ_ITER_HAS_SLICE", 0x40000000),
    ("scx_dsq_iter_flags", "__SCX_DSQ_ITER_HAS_VTIME", 0x80000000),
    ("scx_dsq_iter_flags", "__SCX_DSQ_ITER_USER_FLAGS", 0x10000),
    ("scx_dsq_iter_flags", "__SCX_DSQ_ITER_ALL_FLAGS", 0xc0010000),
    ("scx_dsq_lnode_flags", "SCX_DSQ_LNODE_ITER_CURSOR", 0x1),
    ("scx_dsq_lnode_flags", "__SCX_DSQ_LNODE_PRIV_SHIFT", 0x10),
    ("scx_enable_state", "SCX_ENABLING", 0x0),
    ("scx_enable_state", "SCX_ENABLED", 0x1),
    ("scx_enable_state", "SCX_DISABLING", 0x2),
    ("scx_enable_state", "SCX_DISABLED", 0x3),
    ("scx_enq_flags", "SCX_ENQ_WAKEUP", 0x1),
    ("scx_enq_flags", "SCX_ENQ_HEAD", 0x10000),
    ("scx_enq_flags", "SCX_ENQ_CPU_SELECTED", 0x100000),
    ("scx_enq_flags", "SCX_ENQ_PREEMPT", 0x100000000),
    ("scx_enq_flags", "SCX_ENQ_IMMED", 0x200000000),
    ("scx_enq_flags", "SCX_ENQ_RESCUE", 0x400000000),
    ("scx_enq_flags", "SCX_ENQ_REENQ", 0x10000000000),
    ("scx_enq_flags", "SCX_ENQ_LAST", 0x20000000000),
    ("scx_enq_flags", "__SCX_ENQ_INTERNAL_MASK", 0xff00000000000000),
    ("scx_enq_flags", "SCX_ENQ_CLEAR_OPSS", 0x100000000000000),
    ("scx_enq_flags", "SCX_ENQ_DSQ_PRIQ", 0x200000000000000),
    ("scx_enq_flags", "SCX_ENQ_NESTED", 0x400000000000000),
    ("scx_enq_flags", "SCX_ENQ_GDSQ_FALLBACK", 0x800000000000000),
    ("scx_enq_flags", "SCX_ENQ_IGNORE_CAPS", 0x1000000000000000),
    ("scx_enq_flags", "SCX_ENQ_APPLY_SLICE", 0x2000000000000000),
    ("scx_enq_flags", "SCX_ENQ_SLICE_DFL", 0x4000000000000000),
    ("scx_ent_dsq_flags", "SCX_TASK_DSQ_ON_PRIQ", 0x1),
    ("scx_ent_flags", "SCX_TASK_QUEUED", 0x1),
    ("scx_ent_flags", "SCX_TASK_IN_CUSTODY", 0x2),
    ("scx_ent_flags", "SCX_TASK_RESET_RUNNABLE_AT", 0x4),
    ("scx_ent_flags", "SCX_TASK_DEQD_FOR_SLEEP", 0x8),
    ("scx_ent_flags", "SCX_TASK_SUB_INIT", 0x10),
    ("scx_ent_flags", "SCX_TASK_IMMED", 0x20),
    ("scx_ent_flags", "SCX_TASK_PROTECTED", 0x40),
    ("scx_ent_flags", "SCX_TASK_STATE_SHIFT", 0x8),
    ("scx_ent_flags", "SCX_TASK_STATE_BITS", 0x3),
    ("scx_ent_flags", "SCX_TASK_STATE_MASK", 0x700),
    ("scx_ent_flags", "SCX_TASK_NONE", 0x0),
    ("scx_ent_flags", "SCX_TASK_INIT_BEGIN", 0x100),
    ("scx_ent_flags", "SCX_TASK_INIT", 0x200),
    ("scx_ent_flags", "SCX_TASK_READY", 0x300),
    ("scx_ent_flags", "SCX_TASK_ENABLED", 0x400),
    ("scx_ent_flags", "SCX_TASK_DEAD", 0x500),
    ("scx_ent_flags", "SCX_TASK_REENQ_REASON_SHIFT", 0xc),
    ("scx_ent_flags", "SCX_TASK_REENQ_REASON_BITS", 0x3),
    ("scx_ent_flags", "SCX_TASK_REENQ_REASON_MASK", 0x7000),
    ("scx_ent_flags", "SCX_TASK_REENQ_NONE", 0x0),
    ("scx_ent_flags", "SCX_TASK_REENQ_KFUNC", 0x1000),
    ("scx_ent_flags", "SCX_TASK_REENQ_IMMED", 0x2000),
    ("scx_ent_flags", "SCX_TASK_REENQ_PREEMPTED", 0x3000),
    ("scx_ent_flags", "SCX_TASK_REENQ_CAP", 0x4000),
    ("scx_ent_flags", "SCX_TASK_CURSOR", 0xffffffff80000000),
    ("scx_exit_code", "SCX_ECODE_RSN_HOTPLUG", 0x100000000),
    ("scx_exit_code", "SCX_ECODE_RSN_CGROUP_OFFLINE", 0x200000000),
    ("scx_exit_code", "SCX_ECODE_ACT_RESTART", 0x1000000000000),
    ("scx_exit_flags", "SCX_EFLAG_INITIALIZED", 0x1),
    ("scx_exit_kind", "SCX_EXIT_NONE", 0x0),
    ("scx_exit_kind", "SCX_EXIT_DONE", 0x1),
    ("scx_exit_kind", "SCX_EXIT_UNREG", 0x40),
    ("scx_exit_kind", "SCX_EXIT_UNREG_BPF", 0x41),
    ("scx_exit_kind", "SCX_EXIT_UNREG_KERN", 0x42),
    ("scx_exit_kind", "SCX_EXIT_SYSRQ", 0x43),
    ("scx_exit_kind", "SCX_EXIT_PARENT", 0x44),
    ("scx_exit_kind", "SCX_EXIT_PARENT_KILL", 0x45),
    ("scx_exit_kind", "SCX_EXIT_ERROR", 0x400),
    ("scx_exit_kind", "SCX_EXIT_ERROR_BPF", 0x401),
    ("scx_exit_kind", "SCX_EXIT_ERROR_STALL", 0x402),
    ("scx_exit_kind", "SCX_EXIT_ERROR_REENQ", 0x403),
    ("scx_exit_kind", "SCX_EXIT_ERROR_RESCUE", 0x404),
    ("scx_kf_allow_flags", "SCX_KF_ALLOW_UNLOCKED", 0x1),
    ("scx_kf_allow_flags", "SCX_KF_ALLOW_INIT_CIDS", 0x2),
    ("scx_kf_allow_flags", "SCX_KF_ALLOW_CPU_RELEASE", 0x4),
    ("scx_kf_allow_flags", "SCX_KF_ALLOW_DISPATCH", 0x8),
    ("scx_kf_allow_flags", "SCX_KF_ALLOW_ENQUEUE", 0x10),
    ("scx_kf_allow_flags", "SCX_KF_ALLOW_SELECT_CPU", 0x20),
    ("scx_kick_flags", "SCX_KICK_IDLE", 0x1),
    ("scx_kick_flags", "SCX_KICK_PREEMPT", 0x2),
    ("scx_kick_flags", "SCX_KICK_WAIT", 0x4),
    ("scx_opi", "SCX_OPI_BEGIN", 0x0),
    ("scx_opi", "SCX_OPI_NORMAL_BEGIN", 0x0),
    ("scx_opi", "SCX_OPI_NORMAL_END", 0x21),
    ("scx_opi", "SCX_OPI_CPU_HOTPLUG_BEGIN", 0x21),
    ("scx_opi", "SCX_OPI_CPU_HOTPLUG_END", 0x23),
    ("scx_opi", "SCX_OPI_END", 0x23),
    ("scx_ops_flags", "SCX_OPS_KEEP_BUILTIN_IDLE", 0x1),
    ("scx_ops_flags", "SCX_OPS_ENQ_LAST", 0x2),
    ("scx_ops_flags", "SCX_OPS_ENQ_EXITING", 0x4),
    ("scx_ops_flags", "SCX_OPS_SWITCH_PARTIAL", 0x8),
    ("scx_ops_flags", "SCX_OPS_ENQ_MIGRATION_DISABLED", 0x10),
    ("scx_ops_flags", "SCX_OPS_ALLOW_QUEUED_WAKEUP", 0x20),
    ("scx_ops_flags", "SCX_OPS_BUILTIN_IDLE_PER_NODE", 0x40),
    ("scx_ops_flags", "SCX_OPS_ALWAYS_ENQ_IMMED", 0x80),
    ("scx_ops_flags", "SCX_OPS_TID_TO_TASK", 0x100),
    ("scx_ops_flags", "SCX_OPS_ALL_FLAGS", 0x1ff),
    ("scx_ops_flags", "__SCX_OPS_INTERNAL_MASK", 0xff00000000000000),
    ("scx_ops_flags", "SCX_OPS_HAS_CPU_PREEMPT", 0x100000000000000),
    ("scx_ops_state", "SCX_OPSS_NONE", 0x0),
    ("scx_ops_state", "SCX_OPSS_QUEUEING", 0x1),
    ("scx_ops_state", "SCX_OPSS_QUEUED", 0x2),
    ("scx_ops_state", "SCX_OPSS_DISPATCHING", 0x3),
    ("scx_ops_state", "SCX_OPSS_QSEQ_SHIFT", 0x2),
    ("scx_pick_idle_cpu_flags", "SCX_PICK_IDLE_CORE", 0x1),
    ("scx_pick_idle_cpu_flags", "SCX_PICK_IDLE_IN_NODE", 0x2),
    ("scx_public_consts", "SCX_OPS_NAME_LEN", 0x80),
    ("scx_public_consts", "SCX_SLICE_DFL", 0x1312d00),
    ("scx_public_consts", "SCX_SLICE_BYPASS", 0x4c4b40),
    ("scx_public_consts", "SCX_SLICE_INF", 0xffffffffffffffff),
    ("scx_reenq_flags", "SCX_REENQ_ANY", 0x1),
    ("scx_reenq_flags", "SCX_REENQ_CAP_REVOKE", 0x2),
    ("scx_reenq_flags", "__SCX_REENQ_FILTER_MASK", 0xffff),
    ("scx_reenq_flags", "__SCX_REENQ_USER_MASK", 0x1),
    ("scx_reenq_flags", "SCX_REENQ_TSR_RQ_OPEN", 0x100000000),
    ("scx_reenq_flags", "SCX_REENQ_TSR_NOT_FIRST", 0x200000000),
    ("scx_reenq_flags", "__SCX_REENQ_TSR_MASK", 0xf00000000),
    ("scx_rq_flags", "SCX_RQ_ONLINE", 0x1),
    ("scx_rq_flags", "SCX_RQ_CAN_STOP_TICK", 0x2),
    ("scx_rq_flags", "SCX_RQ_CLK_VALID", 0x20),
    ("scx_rq_flags", "SCX_RQ_BAL_CB_PENDING", 0x40),
    ("scx_rq_flags", "SCX_RQ_SUB_IDLE_RENOTIFY", 0x80),
    ("scx_rq_flags", "SCX_RQ_ROOT_IDLE_RENOTIFY", 0x100),
    ("scx_rq_flags", "SCX_RQ_IN_WAKEUP", 0x10000),
    ("scx_rq_flags", "SCX_RQ_IN_DISPATCH", 0x20000),
    ("scx_sched_pcpu_flags", "SCX_SCHED_PCPU_BYPASSING", 0x1),
    ("scx_slice_oob_consts", "SCX_SLICE_OOB_DUR_BITS", 0x2b),
    ("scx_slice_oob_consts", "SCX_SLICE_OOB_ID_BITS", 0x14),
    ("scx_slice_oob_consts", "SCX_SLICE_OOB_DUR_MASK", 0x7ffffffffff),
    ("scx_slice_oob_consts", "SCX_SLICE_OOB_ID_SHIFT", 0x2b),
    ("scx_slice_oob_consts", "SCX_SLICE_OOB_ID_MASK", 0xfffff),
    ("scx_slice_oob_consts", "SCX_SLICE_OOB_PENDING", 0x8000000000000000),
    ("scx_tg_flags", "SCX_TG_ONLINE", 0x1),
    ("scx_tg_flags", "SCX_TG_INITED", 0x2),
    ("scx_tg_flags", "SCX_TG_SUB_INIT", 0x4),
    ("scx_wake_flags", "SCX_WAKE_FORK", 0x4),
    ("scx_wake_flags", "SCX_WAKE_TTWU", 0x8),
    ("scx_wake_flags", "SCX_WAKE_SYNC", 0x10),
];