Home
last modified time | relevance | path

Searched refs:actual_sz (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_map_resize.c25 size_t array_len, actual_sz, new_sz; in global_map_resize_bss_subtest() local
54 skel->bss = bpf_map__initial_value(skel->maps.bss, &actual_sz); in global_map_resize_bss_subtest()
57 if (!ASSERT_EQ(actual_sz, desired_sz, "bpf_map__initial_value (size)")) in global_map_resize_bss_subtest()
94 size_t array_len, actual_sz, new_sz; in global_map_resize_data_subtest() local
124 skel->data_custom = bpf_map__initial_value(skel->maps.data_custom, &actual_sz); in global_map_resize_data_subtest()
127 if (!ASSERT_EQ(actual_sz, desired_sz, "bpf_map__initial_value (size)")) in global_map_resize_data_subtest()
/linux/tools/lib/bpf/
H A Dlibbpf.c10334 size_t actual_sz; in bpf_map__set_initial_value() local
10343 actual_sz = map->obj->arena_data_sz; in bpf_map__set_initial_value()
10345 actual_sz = map->def.value_size; in bpf_map__set_initial_value()
10346 if (size != actual_sz) in bpf_map__set_initial_value()