mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 14:45:27 +00:00

Synchronize with https://github.com/sched-ext/scx at dc44584874f0 ("kernel: Synchronize with kernel tools/sched_ext"). - READ/WRITE_ONCE() is made more proper and READA_ONCE_ARENA() is dropped. - scale_by_task_weight[_inverse]() helpers added. - Enum defs expanded to cover more and new enums. - Don't trigger fatal error when some enums are missing from kernel BTF. Signed-off-by: Tejun Heo <tj@kernel.org>
124 lines
3.7 KiB
C
124 lines
3.7 KiB
C
/*
|
|
* WARNING: This file is autogenerated from gen_enum_defs.py [1].
|
|
*
|
|
* [1] https://github.com/sched-ext/scx/blob/main/scripts/gen_enum_defs.py
|
|
*/
|
|
|
|
#ifndef __ENUM_DEFS_AUTOGEN_H__
|
|
#define __ENUM_DEFS_AUTOGEN_H__
|
|
|
|
#define HAVE_SCX_DSP_DFL_MAX_BATCH
|
|
#define HAVE_SCX_DSP_MAX_LOOPS
|
|
#define HAVE_SCX_WATCHDOG_MAX_TIMEOUT
|
|
#define HAVE_SCX_EXIT_BT_LEN
|
|
#define HAVE_SCX_EXIT_MSG_LEN
|
|
#define HAVE_SCX_EXIT_DUMP_DFL_LEN
|
|
#define HAVE_SCX_CPUPERF_ONE
|
|
#define HAVE_SCX_OPS_TASK_ITER_BATCH
|
|
#define HAVE_SCX_CPU_PREEMPT_RT
|
|
#define HAVE_SCX_CPU_PREEMPT_DL
|
|
#define HAVE_SCX_CPU_PREEMPT_STOP
|
|
#define HAVE_SCX_CPU_PREEMPT_UNKNOWN
|
|
#define HAVE_SCX_DEQ_SLEEP
|
|
#define HAVE_SCX_DEQ_CORE_SCHED_EXEC
|
|
#define HAVE_SCX_DSQ_FLAG_BUILTIN
|
|
#define HAVE_SCX_DSQ_FLAG_LOCAL_ON
|
|
#define HAVE_SCX_DSQ_INVALID
|
|
#define HAVE_SCX_DSQ_GLOBAL
|
|
#define HAVE_SCX_DSQ_LOCAL
|
|
#define HAVE_SCX_DSQ_LOCAL_ON
|
|
#define HAVE_SCX_DSQ_LOCAL_CPU_MASK
|
|
#define HAVE_SCX_DSQ_ITER_REV
|
|
#define HAVE___SCX_DSQ_ITER_HAS_SLICE
|
|
#define HAVE___SCX_DSQ_ITER_HAS_VTIME
|
|
#define HAVE___SCX_DSQ_ITER_USER_FLAGS
|
|
#define HAVE___SCX_DSQ_ITER_ALL_FLAGS
|
|
#define HAVE_SCX_DSQ_LNODE_ITER_CURSOR
|
|
#define HAVE___SCX_DSQ_LNODE_PRIV_SHIFT
|
|
#define HAVE_SCX_ENQ_WAKEUP
|
|
#define HAVE_SCX_ENQ_HEAD
|
|
#define HAVE_SCX_ENQ_CPU_SELECTED
|
|
#define HAVE_SCX_ENQ_PREEMPT
|
|
#define HAVE_SCX_ENQ_REENQ
|
|
#define HAVE_SCX_ENQ_LAST
|
|
#define HAVE___SCX_ENQ_INTERNAL_MASK
|
|
#define HAVE_SCX_ENQ_CLEAR_OPSS
|
|
#define HAVE_SCX_ENQ_DSQ_PRIQ
|
|
#define HAVE_SCX_TASK_DSQ_ON_PRIQ
|
|
#define HAVE_SCX_TASK_QUEUED
|
|
#define HAVE_SCX_TASK_RESET_RUNNABLE_AT
|
|
#define HAVE_SCX_TASK_DEQD_FOR_SLEEP
|
|
#define HAVE_SCX_TASK_STATE_SHIFT
|
|
#define HAVE_SCX_TASK_STATE_BITS
|
|
#define HAVE_SCX_TASK_STATE_MASK
|
|
#define HAVE_SCX_TASK_CURSOR
|
|
#define HAVE_SCX_ECODE_RSN_HOTPLUG
|
|
#define HAVE_SCX_ECODE_ACT_RESTART
|
|
#define HAVE_SCX_EXIT_NONE
|
|
#define HAVE_SCX_EXIT_DONE
|
|
#define HAVE_SCX_EXIT_UNREG
|
|
#define HAVE_SCX_EXIT_UNREG_BPF
|
|
#define HAVE_SCX_EXIT_UNREG_KERN
|
|
#define HAVE_SCX_EXIT_SYSRQ
|
|
#define HAVE_SCX_EXIT_ERROR
|
|
#define HAVE_SCX_EXIT_ERROR_BPF
|
|
#define HAVE_SCX_EXIT_ERROR_STALL
|
|
#define HAVE_SCX_KF_UNLOCKED
|
|
#define HAVE_SCX_KF_CPU_RELEASE
|
|
#define HAVE_SCX_KF_DISPATCH
|
|
#define HAVE_SCX_KF_ENQUEUE
|
|
#define HAVE_SCX_KF_SELECT_CPU
|
|
#define HAVE_SCX_KF_REST
|
|
#define HAVE___SCX_KF_RQ_LOCKED
|
|
#define HAVE___SCX_KF_TERMINAL
|
|
#define HAVE_SCX_KICK_IDLE
|
|
#define HAVE_SCX_KICK_PREEMPT
|
|
#define HAVE_SCX_KICK_WAIT
|
|
#define HAVE_SCX_OPI_BEGIN
|
|
#define HAVE_SCX_OPI_NORMAL_BEGIN
|
|
#define HAVE_SCX_OPI_NORMAL_END
|
|
#define HAVE_SCX_OPI_CPU_HOTPLUG_BEGIN
|
|
#define HAVE_SCX_OPI_CPU_HOTPLUG_END
|
|
#define HAVE_SCX_OPI_END
|
|
#define HAVE_SCX_OPS_ENABLING
|
|
#define HAVE_SCX_OPS_ENABLED
|
|
#define HAVE_SCX_OPS_DISABLING
|
|
#define HAVE_SCX_OPS_DISABLED
|
|
#define HAVE_SCX_OPS_KEEP_BUILTIN_IDLE
|
|
#define HAVE_SCX_OPS_ENQ_LAST
|
|
#define HAVE_SCX_OPS_ENQ_EXITING
|
|
#define HAVE_SCX_OPS_SWITCH_PARTIAL
|
|
#define HAVE_SCX_OPS_ENQ_MIGRATION_DISABLED
|
|
#define HAVE_SCX_OPS_ALLOW_QUEUED_WAKEUP
|
|
#define HAVE_SCX_OPS_HAS_CGROUP_WEIGHT
|
|
#define HAVE_SCX_OPS_ALL_FLAGS
|
|
#define HAVE_SCX_OPSS_NONE
|
|
#define HAVE_SCX_OPSS_QUEUEING
|
|
#define HAVE_SCX_OPSS_QUEUED
|
|
#define HAVE_SCX_OPSS_DISPATCHING
|
|
#define HAVE_SCX_OPSS_QSEQ_SHIFT
|
|
#define HAVE_SCX_PICK_IDLE_CORE
|
|
#define HAVE_SCX_OPS_NAME_LEN
|
|
#define HAVE_SCX_SLICE_DFL
|
|
#define HAVE_SCX_SLICE_INF
|
|
#define HAVE_SCX_RQ_ONLINE
|
|
#define HAVE_SCX_RQ_CAN_STOP_TICK
|
|
#define HAVE_SCX_RQ_BAL_PENDING
|
|
#define HAVE_SCX_RQ_BAL_KEEP
|
|
#define HAVE_SCX_RQ_BYPASSING
|
|
#define HAVE_SCX_RQ_CLK_VALID
|
|
#define HAVE_SCX_RQ_IN_WAKEUP
|
|
#define HAVE_SCX_RQ_IN_BALANCE
|
|
#define HAVE_SCX_TASK_NONE
|
|
#define HAVE_SCX_TASK_INIT
|
|
#define HAVE_SCX_TASK_READY
|
|
#define HAVE_SCX_TASK_ENABLED
|
|
#define HAVE_SCX_TASK_NR_STATES
|
|
#define HAVE_SCX_TG_ONLINE
|
|
#define HAVE_SCX_TG_INITED
|
|
#define HAVE_SCX_WAKE_FORK
|
|
#define HAVE_SCX_WAKE_TTWU
|
|
#define HAVE_SCX_WAKE_SYNC
|
|
|
|
#endif /* __ENUM_DEFS_AUTOGEN_H__ */
|