Home
last modified time | relevance | path

Searched refs:map_attr (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
Dbpf.c111 struct bpf_create_map_attr map_attr = {}; in bpf_create_map_node() local
113 map_attr.name = name; in bpf_create_map_node()
114 map_attr.map_type = map_type; in bpf_create_map_node()
115 map_attr.map_flags = map_flags; in bpf_create_map_node()
116 map_attr.key_size = key_size; in bpf_create_map_node()
117 map_attr.value_size = value_size; in bpf_create_map_node()
118 map_attr.max_entries = max_entries; in bpf_create_map_node()
120 map_attr.numa_node = node; in bpf_create_map_node()
121 map_attr.map_flags |= BPF_F_NUMA_NODE; in bpf_create_map_node()
124 return bpf_create_map_xattr(&map_attr); in bpf_create_map_node()
[all …]
Dlibbpf.c3797 struct bpf_create_map_attr map_attr; in probe_kern_global_data() local
3807 memset(&map_attr, 0, sizeof(map_attr)); in probe_kern_global_data()
3808 map_attr.map_type = BPF_MAP_TYPE_ARRAY; in probe_kern_global_data()
3809 map_attr.key_size = sizeof(int); in probe_kern_global_data()
3810 map_attr.value_size = 32; in probe_kern_global_data()
3811 map_attr.max_entries = 1; in probe_kern_global_data()
3813 map = bpf_create_map_xattr(&map_attr); in probe_kern_global_data()
3962 struct bpf_create_map_attr map_attr; in probe_prog_bind_map() local
3970 memset(&map_attr, 0, sizeof(map_attr)); in probe_prog_bind_map()
3971 map_attr.map_type = BPF_MAP_TYPE_ARRAY; in probe_prog_bind_map()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/efi/
Druntime-map.c60 struct map_attribute *map_attr = to_map_attr(attr); in map_attr_show() local
62 return map_attr->show(entry, buf); in map_attr_show()