Searched refs:alloc_words (Results 1 – 5 of 5) sorted by relevance
| /linux/kernel/sched/ext/ |
| H A D | types.h | 134 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 D | cid.h | 200 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 D | cid.c | 976 * 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 D | cid.bpf.h | 66 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 D | enable_cmask.bpf.c | 66 if (m->base || m->nr_cids != nr_cids || m->alloc_words != CMASK_NR_WORDS(nr_cids)) in check_mask()
|