Home
last modified time | relevance | path

Searched refs:map_type (Results 1 – 25 of 100) sorted by relevance

1234

/linux-6.15/fs/btrfs/tests/
H A Draid-stripe-tree-tests.c43 u64 map_type = RST_TEST_RAID1_TYPE; in test_punch_hole_3extents() local
64 bioc->map_type = map_type; in test_punch_hole_3extents()
240 bioc->map_type = map_type; in test_delete_two_extents()
383 bioc->map_type = map_type; in test_punch_hole()
480 map_type, 0, &io_stripe); in test_punch_hole()
522 bioc->map_type = map_type; in test_front_delete_prev_item()
598 map_type, 0, &io_stripe); in test_front_delete_prev_item()
663 bioc->map_type = map_type; in test_front_delete()
772 bioc->map_type = map_type; in test_tail_delete()
894 bioc->map_type = map_type; in test_create_update_delete()
[all …]
/linux-6.15/tools/testing/selftests/bpf/
H A Dtest_lru_map.c149 static void test_lru_sanity0(int map_type, int map_flags) in test_lru_sanity0() argument
163 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity0()
261 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1()
338 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity2()
364 if (map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH) { in test_lru_sanity2()
444 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity3()
500 lru_map_fd = create_map(map_type, map_flags, in test_lru_sanity4()
563 static void test_lru_sanity5(int map_type, int map_flags) in test_lru_sanity5() argument
575 map_fd = create_map(map_type, map_flags, 1); in test_lru_sanity5()
691 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity7()
[all …]
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c67 enum bpf_map_type map_type; member
134 .map_type = BPF_MAP_TYPE_ARRAY,
189 .map_type = BPF_MAP_TYPE_ARRAY,
214 .map_type = BPF_MAP_TYPE_ARRAY,
255 .map_type = BPF_MAP_TYPE_ARRAY,
300 .map_type = BPF_MAP_TYPE_ARRAY,
322 .map_type = BPF_MAP_TYPE_ARRAY,
4441 if (!test->map_type) in do_test_raw()
5268 enum bpf_map_type map_type; member
5654 pprint_test_template[0].map_type = pprint_tests_meta[i].map_type; in test_pprint()
[all …]
H A Dsockmap_ktls.c135 enum bpf_map_type map_type) in fmt_test_name() argument
148 static void run_tests(int family, enum bpf_map_type map_type) in run_tests() argument
152 map = bpf_map_create(map_type, NULL, sizeof(int), sizeof(int), 1, NULL); in run_tests()
156 if (test__start_subtest(fmt_test_name("disconnect_after_delete", family, map_type))) in run_tests()
158 if (test__start_subtest(fmt_test_name("update_fails_when_sock_has_ulp", family, map_type))) in run_tests()
H A Dlibbpf_probes.c68 enum bpf_map_type map_type = (enum bpf_map_type)e->val; in test_libbpf_probe_map_types() local
71 if (map_type == BPF_MAP_TYPE_UNSPEC) in test_libbpf_probe_map_types()
79 res = libbpf_probe_bpf_map_type(map_type, NULL); in test_libbpf_probe_map_types()
H A Dlibbpf_str.c130 enum bpf_map_type map_type = (enum bpf_map_type)e->val; in test_libbpf_bpf_map_type_str() local
135 if (map_type == __MAX_BPF_MAP_TYPE) in test_libbpf_bpf_map_type_str()
139 map_type_str = libbpf_bpf_map_type_str(map_type); in test_libbpf_bpf_map_type_str()
H A Dmap_init.c38 static struct test_map_init *setup(enum bpf_map_type map_type, int map_sz, in setup() argument
48 err = bpf_map__set_type(skel->maps.hashmap1, map_type); in setup()
/linux-6.15/samples/bpf/
H A Dtest_lru_dist.c307 static void test_parallel_lru_dist(int map_type, int map_flags, in test_parallel_lru_dist() argument
317 lru_map_fd = create_map(map_type, map_flags, in test_parallel_lru_dist()
320 lru_map_fd = create_map(map_type, map_flags, in test_parallel_lru_dist()
332 static void test_lru_loss0(int map_type, int map_flags) in test_lru_loss0() argument
346 map_fd = create_map(map_type, map_flags, 900 * nr_cpus); in test_lru_loss0()
348 map_fd = create_map(map_type, map_flags, 900); in test_lru_loss0()
386 static void test_lru_loss1(int map_type, int map_flags) in test_lru_loss1() argument
398 map_fd = create_map(map_type, map_flags, 1000 * nr_cpus); in test_lru_loss1()
400 map_fd = create_map(map_type, map_flags, 1000); in test_lru_loss1()
474 map_fd = create_map(map_type, map_flags, in test_parallel_lru_loss()
[all …]
/linux-6.15/include/trace/events/
H A Dxdp.h95 enum bpf_map_type map_type,
98 TP_ARGS(dev, xdp, tgt, err, map_type, map_id, index),
113 if (map_type == BPF_MAP_TYPE_DEVMAP || map_type == BPF_MAP_TYPE_DEVMAP_HASH) {
145 enum bpf_map_type map_type,
147 TP_ARGS(dev, xdp, tgt, err, map_type, map_id, index)
154 enum bpf_map_type map_type,
156 TP_ARGS(dev, xdp, tgt, err, map_type, map_id, index)
176 enum bpf_map_type map_type,
178 TP_ARGS(dev, xdp, tgt, err, map_type, map_id, index)
185 enum bpf_map_type map_type,
[all …]
/linux-6.15/tools/testing/selftests/filesystems/
H A Dutils.c60 idmap_type_t map_type; member
177 static int write_id_mapping(idmap_type_t map_type, pid_t pid, const char *buf, size_t buf_size) in write_id_mapping() argument
185 if (geteuid() != 0 && map_type == ID_TYPE_GID) { in write_id_mapping()
218 map_type == ID_TYPE_UID ? 'u' : 'g', path); in write_id_mapping()
235 idmap_type_t map_type, u_or_g; in map_ids_from_idmap() local
240 for (map_type = ID_TYPE_UID, u_or_g = 'u'; in map_ids_from_idmap()
241 map_type <= ID_TYPE_GID; map_type++, u_or_g = 'g') { in map_ids_from_idmap()
249 if (map->map_type != map_type) in map_ids_from_idmap()
268 ret = write_id_mapping(map_type, pid, mapbuf, pos - mapbuf); in map_ids_from_idmap()
308 .map_type = ID_TYPE_UID, in get_userns_fd()
[all …]
/linux-6.15/tools/testing/selftests/bpf/map_tests/
H A Dmap_percpu_stats.c129 static bool is_lru(__u32 map_type) in is_lru() argument
131 return map_type == BPF_MAP_TYPE_LRU_HASH || in is_lru()
132 map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH; in is_lru()
135 static bool is_percpu(__u32 map_type) in is_percpu() argument
137 return map_type == BPF_MAP_TYPE_PERCPU_HASH || in is_percpu()
138 map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH; in is_percpu()
142 __u32 map_type; member
178 } else if (is_percpu(opts->map_type)) { in patch_map_thread()
193 if (opts->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) in patch_map_thread()
300 opts.map_type = info.type; in __test()
[all …]
H A Dmap_in_map_batch_ops.c31 static void create_inner_maps(enum bpf_map_type map_type, in create_inner_maps() argument
41 map_fd = bpf_map_create(map_type, map_name, sizeof(__u32), in create_inner_maps()
46 map_type, map_name, strerror(errno)); in create_inner_maps()
62 map_type, map_name, strerror(errno)); in create_inner_maps()
66 static int create_outer_map(enum bpf_map_type map_type, __u32 inner_map_fd) in create_outer_map() argument
72 outer_map_fd = bpf_map_create(map_type, "outer_map", sizeof(__u32), in create_outer_map()
78 map_type, strerror(errno)); in create_outer_map()
/linux-6.15/fs/btrfs/
H A Draid-stripe-tree.h27 u64 logical, u64 *length, u64 map_type,
38 u64 map_type) in btrfs_need_stripe_tree_update() argument
40 u64 type = map_type & BTRFS_BLOCK_GROUP_TYPE_MASK; in btrfs_need_stripe_tree_update()
41 u64 profile = map_type & BTRFS_BLOCK_GROUP_PROFILE_MASK; in btrfs_need_stripe_tree_update()
/linux-6.15/kernel/bpf/
H A Dmap_iter.c116 if (map->map_type == BPF_MAP_TYPE_PERCPU_HASH || in bpf_iter_attach_map()
117 map->map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH || in bpf_iter_attach_map()
118 map->map_type == BPF_MAP_TYPE_PERCPU_ARRAY) in bpf_iter_attach_map()
120 else if (map->map_type != BPF_MAP_TYPE_HASH && in bpf_iter_attach_map()
121 map->map_type != BPF_MAP_TYPE_LRU_HASH && in bpf_iter_attach_map()
122 map->map_type != BPF_MAP_TYPE_ARRAY) in bpf_iter_attach_map()
H A Dsyscall.c251 map->map_type == BPF_MAP_TYPE_ARENA || in bpf_map_update_value()
282 map->map_type == BPF_MAP_TYPE_STACK || in bpf_map_update_value()
430 map->map_type = attr->map_type; in bpf_map_init_from_attr()
998 map->map_type, in bpf_map_show_fdinfo()
1344 u32 map_type = attr->map_type; in map_create() local
1383 map_type = attr->map_type; in map_create()
1386 map_type = array_index_nospec(map_type, ARRAY_SIZE(bpf_map_types)); in map_create()
1387 ops = bpf_map_types[map_type]; in map_create()
1429 switch (map_type) { in map_create()
1482 map->map_type = map_type; in map_create()
[all …]
H A Dmap_in_map.c36 inner_map_meta->map_type = inner_map->map_type; in bpf_map_meta_alloc()
87 return meta0->map_type == meta1->map_type && in bpf_map_meta_equal()
H A Darraymap.c54 bool percpu = attr->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in array_map_alloc_check()
65 if (attr->map_type != BPF_MAP_TYPE_ARRAY && in array_map_alloc_check()
69 if (attr->map_type != BPF_MAP_TYPE_PERF_EVENT_ARRAY && in array_map_alloc_check()
85 bool percpu = attr->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in array_map_alloc()
368 if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY) { in array_map_update_elem()
459 if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY) { in array_map_free()
475 if (array->map.map_type == BPF_MAP_TYPE_PERCPU_ARRAY) in array_map_free()
537 if (map->map_type != BPF_MAP_TYPE_ARRAY || in array_map_check_btf()
689 if (map->map_type == BPF_MAP_TYPE_PERCPU_ARRAY) { in bpf_iter_init_array_map()
743 is_percpu = map->map_type == BPF_MAP_TYPE_PERCPU_ARRAY; in bpf_for_each_array_elem()
[all …]
/linux-6.15/fs/smb/client/
H A Dcifs_unicode.c17 int map_type; in cifs_remap() local
20 map_type = SFM_MAP_UNI_RSVD; in cifs_remap()
22 map_type = SFU_MAP_UNI_RSVD; in cifs_remap()
24 map_type = NO_MAP_UNI_RSVD; in cifs_remap()
26 return map_type; in cifs_remap()
178 const struct nls_table *codepage, int map_type) in cifs_from_utf16() argument
213 charlen = cifs_mapchar(tmp, ftmp, codepage, map_type); in cifs_from_utf16()
219 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16()
/linux-6.15/tools/lib/bpf/
H A Dlibbpf_probes.c282 static int probe_map_create(enum bpf_map_type map_type) in probe_map_create() argument
293 switch (map_type) { in probe_map_create()
372 if (map_type == BPF_MAP_TYPE_ARRAY_OF_MAPS || in probe_map_create()
373 map_type == BPF_MAP_TYPE_HASH_OF_MAPS) { in probe_map_create()
388 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, &opts); in probe_map_create()
405 int libbpf_probe_bpf_map_type(enum bpf_map_type map_type, const void *opts) in libbpf_probe_bpf_map_type() argument
412 ret = probe_map_create(map_type); in libbpf_probe_bpf_map_type()
H A Dskel_internal.h158 if (map->map_type != BPF_MAP_TYPE_ARRAY) in skel_finalize_map_data()
219 static inline int skel_map_create(enum bpf_map_type map_type, in skel_map_create() argument
230 attr.map_type = map_type; in skel_map_create()
/linux-6.15/tools/testing/selftests/arm64/mte/
H A Dcheck_user_mem.c145 const char* map_type; in format_test_name() local
179 map_type = "MAP_SHARED"; in format_test_name()
182 map_type = "MAP_PRIVATE"; in format_test_name()
191 test_type, mte_type, map_type, len, offset); in format_test_name()
/linux-6.15/tools/bpf/bpftool/
H A Dfeature.c593 static bool probe_map_type_ifindex(enum bpf_map_type map_type, __u32 ifindex) in probe_map_type_ifindex() argument
605 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, in probe_map_type_ifindex()
614 probe_map_type(enum bpf_map_type map_type, char const *map_type_str, in probe_map_type() argument
623 switch (map_type) { in probe_map_type()
631 res = probe_map_type_ifindex(map_type, ifindex); in probe_map_type()
633 res = libbpf_probe_bpf_map_type(map_type, NULL) > 0; in probe_map_type()
981 unsigned int map_type = BPF_MAP_TYPE_UNSPEC; in section_map_types() local
990 map_type++; in section_map_types()
991 map_type_str = libbpf_bpf_map_type_str(map_type); in section_map_types()
996 probe_map_type(map_type, map_type_str, define_prefix, ifindex); in section_map_types()
H A Dgen.c980 n = btf_vlen(map_type); in walk_st_ops_shadow_vars()
1081 const struct btf_type *map_type; in gen_st_ops_shadow_type() local
1089 map_type = btf__type_by_id(btf, map_type_id); in gen_st_ops_shadow_type()
1090 if (!map_type) in gen_st_ops_shadow_type()
1583 const struct btf_type *map_type, *var_type; in do_subskeleton() local
1689 map_type = btf__type_by_id(btf, map_type_id); in do_subskeleton()
1691 var = btf_var_secinfos(map_type); in do_subskeleton()
1692 len = btf_vlen(map_type); in do_subskeleton()
1812 map_type = btf__type_by_id(btf, map_type_id); in do_subskeleton()
1813 var = btf_var_secinfos(map_type); in do_subskeleton()
[all …]
/linux-6.15/drivers/gpu/drm/i915/gt/
H A Dshmem_utils.c37 enum i915_map_type map_type; in shmem_create_from_object() local
47 map_type = i915_gem_object_is_lmem(obj) ? I915_MAP_WC : I915_MAP_WB; in shmem_create_from_object()
48 ptr = i915_gem_object_pin_map_unlocked(obj, map_type); in shmem_create_from_object()
/linux-6.15/drivers/media/platform/chips-media/wave5/
H A Dwave5.h77 struct frame_buffer *fb_arr, enum tiled_map_type map_type,
112 struct frame_buffer *fb_arr, enum tiled_map_type map_type,

1234