Home
last modified time | relevance | path

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

/linux/kernel/sched/ext/
H A Dtypes.h134 u32 alloc_words;
143 * is near U32_MAX, so callers bounds-checking the result against @alloc_words
163 .alloc_words = SCX_CMASK_NR_WORDS(ALLOC_CIDS) })
130 u32 alloc_words; global() member
H A Dcid.h200 m->alloc_words = SCX_CMASK_NR_WORDS(alloc_cids); in __scx_cmask_init()
201 memset(m->bits, 0, m->alloc_words * sizeof(u64)); in __scx_cmask_init()
228 if (WARN_ON_ONCE(SCX_CMASK_NR_WORDS(nr_cids) > m->alloc_words)) in scx_cmask_reframe()
H A Dcid.c976 * Snapshot @src's @base, @nr_cids and @alloc_words. The snapshot is necessary in scx_cmask_ref_init()
979 * Return 0 on success, -EINVAL if the range is out of bounds or @alloc_words in scx_cmask_ref_init() local
985 u32 base, nr_cids, alloc_words, npossible = num_possible_cpus(); in scx_cmask_ref_init()
990 alloc_words = READ_ONCE(src->alloc_words); in scx_cmask_ref_init()
993 SCX_CMASK_NR_WORDS(nr_cids) > alloc_words)) in scx_cmask_ref_init()
1031 WRITE_ONCE(m->alloc_words, SCX_CMASK_NR_WORDS(nr_cids)); in scx_cmask_ref_init_kern()
1050 * @out: output cmask whose @out->alloc_words must hold the shard
1077 if (nr_words > out->alloc_words) { in scx_cmask_ref_shard()
1078 scx_error(ref->sch, "scx_cmask_ref_shard: out alloc_words in scx_cmask_ref_shard()
[all...]
/linux/tools/sched_ext/include/scx/
H A Dcid.bpf.h66 u32 alloc_words, i; in __cmask_init() local
73 alloc_words = CMASK_NR_WORDS(alloc_cids); in __cmask_init()
77 m->alloc_words = alloc_words; in __cmask_init()
80 if (i >= alloc_words) in __cmask_init()
110 if (CMASK_NR_WORDS(nr_cids) > m->alloc_words) { in cmask_reframe()
112 nr_cids, m->alloc_words); in cmask_reframe()
/linux/tools/testing/selftests/sched_ext/
H A Denable_cmask.bpf.c66 if (m->base || m->nr_cids != nr_cids || m->alloc_words != CMASK_NR_WORDS(nr_cids)) in check_mask()