Home
last modified time | relevance | path

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

/tools/lib/bpf/
Dbpf.c80 int bpf_create_map_xattr(const struct bpf_create_map_attr *create_attr) in bpf_create_map_xattr() argument
87 attr.map_type = create_attr->map_type; in bpf_create_map_xattr()
88 attr.key_size = create_attr->key_size; in bpf_create_map_xattr()
89 attr.value_size = create_attr->value_size; in bpf_create_map_xattr()
90 attr.max_entries = create_attr->max_entries; in bpf_create_map_xattr()
91 attr.map_flags = create_attr->map_flags; in bpf_create_map_xattr()
92 if (create_attr->name) in bpf_create_map_xattr()
93 memcpy(attr.map_name, create_attr->name, in bpf_create_map_xattr()
94 min(strlen(create_attr->name), BPF_OBJ_NAME_LEN - 1)); in bpf_create_map_xattr()
95 attr.numa_node = create_attr->numa_node; in bpf_create_map_xattr()
[all …]
Dlibbpf.c4575 struct bpf_create_map_attr create_attr; in bpf_object__create_map() local
4579 memset(&create_attr, 0, sizeof(create_attr)); in bpf_object__create_map()
4582 create_attr.name = map->name; in bpf_object__create_map()
4583 create_attr.map_ifindex = map->map_ifindex; in bpf_object__create_map()
4584 create_attr.map_type = def->type; in bpf_object__create_map()
4585 create_attr.map_flags = def->map_flags; in bpf_object__create_map()
4586 create_attr.key_size = def->key_size; in bpf_object__create_map()
4587 create_attr.value_size = def->value_size; in bpf_object__create_map()
4588 create_attr.numa_node = map->numa_node; in bpf_object__create_map()
4600 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);
/tools/testing/selftests/bpf/prog_tests/
Dbtf.c3811 struct bpf_create_map_attr create_attr = {}; in do_test_raw() local
3854 create_attr.name = test->map_name; in do_test_raw()
3855 create_attr.map_type = test->map_type; in do_test_raw()
3856 create_attr.key_size = test->key_size; in do_test_raw()
3857 create_attr.value_size = test->value_size; in do_test_raw()
3858 create_attr.max_entries = test->max_entries; in do_test_raw()
3859 create_attr.btf_fd = btf_fd; in do_test_raw()
3860 create_attr.btf_key_type_id = test->key_type_id; in do_test_raw()
3861 create_attr.btf_value_type_id = test->value_type_id; in do_test_raw()
3863 map_fd = bpf_create_map_xattr(&create_attr); in do_test_raw()
[all …]