Home
last modified time | relevance | path

Searched refs:scx (Results 1 – 18 of 18) sorted by relevance

/linux/kernel/sched/
H A Dext.c1258 WARN_ONCE((mask | higher_bits(mask)) & current->scx.kf_mask, in scx_kf_allow()
1260 current->scx.kf_mask, mask); in scx_kf_allow()
1261 current->scx.kf_mask |= mask; in scx_kf_allow()
1268 current->scx.kf_mask &= ~mask; in scx_kf_disallow()
1338 current->scx.kf_tasks[0] = task; \
1340 current->scx.kf_tasks[0] = NULL; \
1347 current->scx.kf_tasks[0] = task; \
1349 current->scx.kf_tasks[0] = NULL; \
1357 current->scx.kf_tasks[0] = task0; \
1358 current->scx.kf_tasks[1] = task1; \
[all …]
H A Dext.h13 return !current->scx.kf_mask; in scx_kf_allowed_if_unlocked()
18 return unlikely(rq->scx.flags & SCX_RQ_BYPASSING); in scx_rq_bypassing()
35 void init_scx_entity(struct sched_ext_entity *scx);
51 return cpu_rq(cpu)->scx.cpuperf_target; in scx_cpuperf_target()
H A Dsched.h475 struct scx_task_group scx;
1123 struct scx_rq scx;
1736 WRITE_ONCE(rq->scx.clock, clock); in scx_rq_clock_update()
1737 smp_store_release(&rq->scx.flags, rq->scx.flags | SCX_RQ_CLK_VALID); in scx_rq_clock_update()
1744 WRITE_ONCE(rq->scx.flags, rq->scx.flags & ~SCX_RQ_CLK_VALID); in scx_rq_clock_invalidate()
1126 struct scx_rq scx; global() member
H A Dext_idle.c548 cpu_rq(cpu)->scx.local_dsq.nr == 0 && in scx_select_cpu_dfl()
H A Dcore.c4509 init_scx_entity(&p->scx); in __sched_fork()
5958 rq->scx.flags |= SCX_RQ_BAL_PENDING; in prev_balance()
9838 *period_us_p = tg->scx.bw_period_us; in tg_bandwidth()
9840 *quota_us_p = tg->scx.bw_quota_us; in tg_bandwidth()
9842 *burst_us_p = tg->scx.bw_burst_us; in tg_bandwidth()
/linux/tools/testing/selftests/sched_ext/
H A Dselect_cpu_vtime.bpf.c30 u64 vtime = p->scx.dsq_vtime; in task_vtime()
62 if (vtime_before(vtime_now, p->scx.dsq_vtime)) in BPF_STRUCT_OPS()
63 vtime_now = p->scx.dsq_vtime; in BPF_STRUCT_OPS()
69 p->scx.dsq_vtime += (SCX_SLICE_DFL - p->scx.slice) * 100 / p->scx.weight; in BPF_STRUCT_OPS()
74 p->scx.dsq_vtime = vtime_now; in BPF_STRUCT_OPS()
H A Dmaybe_null_fail_dsp.bpf.c17 vtime_test = p->scx.dsq_vtime; in BPF_STRUCT_OPS()
H A Dmaybe_null.bpf.c18 vtime_test = p->scx.dsq_vtime; in BPF_STRUCT_OPS()
H A Dddsp_bogus_dsq_fail.bpf.c24 p->scx.dsq_vtime, 0); in BPF_STRUCT_OPS()
H A Dddsp_vtimelocal_fail.bpf.c21 p->scx.dsq_vtime, 0); in BPF_STRUCT_OPS()
/linux/tools/sched_ext/
H A Dscx_flatcg.bpf.c393 u64 tvtime = p->scx.dsq_vtime; in BPF_STRUCT_OPS()
533 if (time_before(cgc->tvtime_now, p->scx.dsq_vtime)) in BPF_STRUCT_OPS()
534 cgc->tvtime_now = p->scx.dsq_vtime; in BPF_STRUCT_OPS()
555 p->scx.dsq_vtime += in BPF_STRUCT_OPS()
556 (SCX_SLICE_DFL - p->scx.slice) * 100 / p->scx.weight; in BPF_STRUCT_OPS()
825 p->scx.dsq_vtime = cgc->tvtime_now; in BPF_STRUCT_OPS()
924 delta = time_delta(p->scx.dsq_vtime, from_cgc->tvtime_now); in BPF_STRUCT_OPS()
925 p->scx.dsq_vtime = to_cgc->tvtime_now + delta; in BPF_STRUCT_OPS()
H A DMakefile173 $(SCXOBJ_DIR)/%.bpf.o: %.bpf.c $(INCLUDE_DIR)/vmlinux.h include/scx/*.h \
188 SCX_COMMON_DEPS := include/scx/common.h include/scx/user_exit_info.h | $(BINDIR)
H A DREADME.md164 https://github.com/sched-ext/scx.
/linux/init/
H A Dinit_task.c105 .scx = {
106 .dsq_list.node = LIST_HEAD_INIT(init_task.scx.dsq_list.node),
109 .runnable_node = LIST_HEAD_INIT(init_task.scx.runnable_node),
/linux/tools/sched_ext/include/scx/
H A Dcommon.bpf.h13 * prototypes. See https://github.com/sched-ext/scx/issues/1111.
670 return (value * p->scx.weight) / 100;
678 return value * 100 / p->scx.weight;
/linux/kernel/
H A DKconfig.preempt178 https://github.com/sched-ext/scx
/linux/include/linux/
H A Dsched.h874 struct sched_ext_entity scx; member
/linux/
H A DMAINTAINERS22566 W: https://github.com/sched-ext/scx