Home
last modified time | relevance | path

Searched refs:create_attr (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
Dbpf.c79 int bpf_create_map_xattr(const struct bpf_create_map_attr *create_attr) in bpf_create_map_xattr() argument
85 attr.map_type = create_attr->map_type; in bpf_create_map_xattr()
86 attr.key_size = create_attr->key_size; in bpf_create_map_xattr()
87 attr.value_size = create_attr->value_size; in bpf_create_map_xattr()
88 attr.max_entries = create_attr->max_entries; in bpf_create_map_xattr()
89 attr.map_flags = create_attr->map_flags; in bpf_create_map_xattr()
90 if (create_attr->name) in bpf_create_map_xattr()
91 memcpy(attr.map_name, create_attr->name, in bpf_create_map_xattr()
92 min(strlen(create_attr->name), BPF_OBJ_NAME_LEN - 1)); in bpf_create_map_xattr()
93 attr.numa_node = create_attr->numa_node; in bpf_create_map_xattr()
[all …]
Dlibbpf.c4169 struct bpf_create_map_attr create_attr; in bpf_object__create_map() local
4173 memset(&create_attr, 0, sizeof(create_attr)); in bpf_object__create_map()
4176 create_attr.name = map->name; in bpf_object__create_map()
4177 create_attr.map_ifindex = map->map_ifindex; in bpf_object__create_map()
4178 create_attr.map_type = def->type; in bpf_object__create_map()
4179 create_attr.map_flags = def->map_flags; in bpf_object__create_map()
4180 create_attr.key_size = def->key_size; in bpf_object__create_map()
4181 create_attr.value_size = def->value_size; in bpf_object__create_map()
4182 create_attr.numa_node = map->numa_node; in bpf_object__create_map()
4194 create_attr.max_entries = nr_cpus; in bpf_object__create_map()
[all …]
Dbpf.h56 bpf_create_map_xattr(const struct bpf_create_map_attr *create_attr);
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dbtf.c3632 struct bpf_create_map_attr create_attr = {}; in do_test_raw() local
3675 create_attr.name = test->map_name; in do_test_raw()
3676 create_attr.map_type = test->map_type; in do_test_raw()
3677 create_attr.key_size = test->key_size; in do_test_raw()
3678 create_attr.value_size = test->value_size; in do_test_raw()
3679 create_attr.max_entries = test->max_entries; in do_test_raw()
3680 create_attr.btf_fd = btf_fd; in do_test_raw()
3681 create_attr.btf_key_type_id = test->key_type_id; in do_test_raw()
3682 create_attr.btf_value_type_id = test->value_type_id; in do_test_raw()
3684 map_fd = bpf_create_map_xattr(&create_attr); in do_test_raw()
[all …]