Searched refs:bpf_percpu (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_maps.c | 161 sizeof(bpf_percpu(value, 0)), 2, &map_opts); in test_hashmap_percpu() 168 bpf_percpu(value, i) = i + 100; in test_hashmap_percpu() 177 bpf_percpu(value,0) == 100); in test_hashmap_percpu() 180 bpf_percpu(value,i) = i + 100; in test_hashmap_percpu() 198 bpf_percpu(value, 0) = 1; in test_hashmap_percpu() 200 bpf_percpu(value, 0) == 100); in test_hashmap_percpu() 240 assert(bpf_percpu(value, i) == i + 100); in test_hashmap_percpu() 422 sizeof(bpf_percpu(values, 0)), 2, NULL); in test_arraymap_percpu() 429 bpf_percpu(values, i) = i + 100; in test_arraymap_percpu() 435 bpf_percpu(values, 0) = 0; in test_arraymap_percpu() [all …]
|
H A D | bpf_util.h | 47 #define bpf_percpu(name, cpu) name[(cpu)].v macro
|
/openbmc/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | htab_map_batch_ops.c | 32 bpf_percpu(v[i], j) = i + 2 + j; in map_batch_update() 56 CHECK(keys[i] + 1 + j != bpf_percpu(v[i], j), in map_batch_verify() 59 i, j, keys[i], bpf_percpu(v[i], j)); in map_batch_verify()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | map_init.c | 27 bpf_percpu(value, i) = FILL_VALUE; in map_populate() 106 val = bpf_percpu(value, i); in check_values_one_cpu()
|