Searched refs:scx (Results 1 – 18 of 18) sorted by relevance
/linux/kernel/sched/ |
H A D | ext.c | 1258 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 D | ext.h | 13 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 D | sched.h | 475 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 D | ext_idle.c | 548 cpu_rq(cpu)->scx.local_dsq.nr == 0 && in scx_select_cpu_dfl()
|
H A D | core.c | 4509 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 D | select_cpu_vtime.bpf.c | 30 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 D | maybe_null_fail_dsp.bpf.c | 17 vtime_test = p->scx.dsq_vtime; in BPF_STRUCT_OPS()
|
H A D | maybe_null.bpf.c | 18 vtime_test = p->scx.dsq_vtime; in BPF_STRUCT_OPS()
|
H A D | ddsp_bogus_dsq_fail.bpf.c | 24 p->scx.dsq_vtime, 0); in BPF_STRUCT_OPS()
|
H A D | ddsp_vtimelocal_fail.bpf.c | 21 p->scx.dsq_vtime, 0); in BPF_STRUCT_OPS()
|
/linux/tools/sched_ext/ |
H A D | scx_flatcg.bpf.c | 393 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 D | Makefile | 173 $(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 D | README.md | 164 https://github.com/sched-ext/scx.
|
/linux/init/ |
H A D | init_task.c | 105 .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 D | common.bpf.h | 13 * 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 D | Kconfig.preempt | 178 https://github.com/sched-ext/scx
|
/linux/include/linux/ |
H A D | sched.h | 874 struct sched_ext_entity scx; member
|
/linux/ |
H A D | MAINTAINERS | 22566 W: https://github.com/sched-ext/scx
|