Home
last modified time | relevance | path

Searched refs:dsq_id (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/tools/sched_ext/include/scx/
Dcompat.bpf.h30 #define __COMPAT_scx_bpf_dispatch_from_dsq(it, p, dsq_id, enq_flags) \ argument
32 scx_bpf_dispatch_from_dsq((it), (p), (dsq_id), (enq_flags)) : false)
33 #define __COMPAT_scx_bpf_dispatch_vtime_from_dsq(it, p, dsq_id, enq_flags) \ argument
35 scx_bpf_dispatch_vtime_from_dsq((it), (p), (dsq_id), (enq_flags)) : false)
Dcommon.bpf.h37 s32 scx_bpf_create_dsq(u64 dsq_id, s32 node) __ksym;
39 void scx_bpf_dispatch(struct task_struct *p, u64 dsq_id, u64 slice, u64 enq_flags) __ksym;
40 void scx_bpf_dispatch_vtime(struct task_struct *p, u64 dsq_id, u64 slice, u64 vtime, u64 enq_flags)…
43 bool scx_bpf_consume(u64 dsq_id) __ksym;
46 bool scx_bpf_dispatch_from_dsq(struct bpf_iter_scx_dsq *it__iter, struct task_struct *p, u64 dsq_id
47 …e_from_dsq(struct bpf_iter_scx_dsq *it__iter, struct task_struct *p, u64 dsq_id, u64 enq_flags) __…
50 s32 scx_bpf_dsq_nr_queued(u64 dsq_id) __ksym;
51 void scx_bpf_destroy_dsq(u64 dsq_id) __ksym;
52 int bpf_iter_scx_dsq_new(struct bpf_iter_scx_dsq *it, u64 dsq_id, u64 flags) __ksym __weak;
/linux-6.12.1/tools/testing/selftests/sched_ext/
Dselect_cpu_dispatch.bpf.c18 u64 dsq_id = SCX_DSQ_LOCAL; in BPF_STRUCT_OPS() local
28 dsq_id = SCX_DSQ_GLOBAL; in BPF_STRUCT_OPS()
32 scx_bpf_dispatch(p, dsq_id, SCX_SLICE_DFL, 0); in BPF_STRUCT_OPS()
Dselect_cpu_dfl_nodispatch.bpf.c55 u64 dsq_id = SCX_DSQ_GLOBAL; in BPF_STRUCT_OPS() local
65 dsq_id = SCX_DSQ_LOCAL; in BPF_STRUCT_OPS()
70 scx_bpf_dispatch(p, dsq_id, SCX_SLICE_DFL, enq_flags); in BPF_STRUCT_OPS()
/linux-6.12.1/kernel/sched/
Dext.c962 u64 dsq_id; member
1055 static struct scx_dispatch_q *find_user_dsq(u64 dsq_id) in find_user_dsq() argument
1057 return rhashtable_lookup_fast(&dsq_hash, &dsq_id, dsq_hash_params); in find_user_dsq()
1852 static struct scx_dispatch_q *find_dsq_for_dispatch(struct rq *rq, u64 dsq_id, in find_dsq_for_dispatch() argument
1857 if (dsq_id == SCX_DSQ_LOCAL) in find_dsq_for_dispatch()
1860 if ((dsq_id & SCX_DSQ_LOCAL_ON) == SCX_DSQ_LOCAL_ON) { in find_dsq_for_dispatch()
1861 s32 cpu = dsq_id & SCX_DSQ_LOCAL_CPU_MASK; in find_dsq_for_dispatch()
1869 if (dsq_id == SCX_DSQ_GLOBAL) in find_dsq_for_dispatch()
1872 dsq = find_user_dsq(dsq_id); in find_dsq_for_dispatch()
1876 dsq_id, p->comm, p->pid); in find_dsq_for_dispatch()
[all …]