/linux-6.1.9/tools/testing/selftests/vm/ |
D | ksm_tests.c | 134 void *map_ptr = mmap(ptr, map_size, PROT_WRITE, mapping, -1, 0); in allocate_memory() local 136 if (!map_ptr) { in allocate_memory() 140 memset(map_ptr, data, map_size); in allocate_memory() 141 if (mprotect(map_ptr, map_size, prot)) { in allocate_memory() 143 munmap(map_ptr, map_size); in allocate_memory() 147 return map_ptr; in allocate_memory() 257 void *map_ptr; in check_ksm_merge() local 266 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count); in check_ksm_merge() 267 if (!map_ptr) in check_ksm_merge() 270 if (ksm_merge_pages(map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_merge() [all …]
|
/linux-6.1.9/tools/testing/selftests/arm64/mte/ |
D | check_mmap_options.c | 62 char *ptr, *map_ptr; in check_anonymous_memory_mapping() local 70 map_ptr = (char *)mte_allocate_memory(map_size, mem_type, mapping, false); in check_anonymous_memory_mapping() 71 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) in check_anonymous_memory_mapping() 74 ptr = map_ptr + UNDERFLOW; in check_anonymous_memory_mapping() 80 munmap((void *)map_ptr, map_size); in check_anonymous_memory_mapping() 85 mte_free_memory((void *)map_ptr, map_size, mem_type, false); in check_anonymous_memory_mapping() 94 char *ptr, *map_ptr; in check_file_memory_mapping() local 106 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_file_memory_mapping() 107 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_file_memory_mapping() 111 ptr = map_ptr + UNDERFLOW; in check_file_memory_mapping() [all …]
|
D | check_child_memory.c | 108 char *ptr, *map_ptr; in check_child_file_mapping() local 119 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_child_file_mapping() 120 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_child_file_mapping() 124 ptr = map_ptr + UNDERFLOW; in check_child_file_mapping() 130 munmap((void *)map_ptr, map_size); in check_child_file_mapping() 136 munmap((void *)map_ptr, map_size); in check_child_file_mapping()
|
/linux-6.1.9/kernel/bpf/ |
D | verifier.c | 249 struct bpf_map *map_ptr; member 457 map_value_has_spin_lock(reg->map_ptr); in reg_may_point_to_spin_lock() 888 reg->map_ptr->key_size, in print_verifier_state() 889 reg->map_ptr->value_size); in print_verifier_state() 1399 const struct bpf_map *map = reg->map_ptr; in mark_ptr_not_null_reg() 1403 reg->map_ptr = map->inner_map_meta; in mark_ptr_not_null_reg() 3553 struct bpf_map *map = regs[regno].map_ptr; in check_map_access_type() 3836 struct bpf_map *map = reg->map_ptr; in check_map_access() 4595 struct bpf_map *map = reg->map_ptr; in check_ptr_to_map_access() 4764 reg->map_ptr->key_size, false); in check_mem_access() [all …]
|
D | arraymap.c | 211 const int map_ptr = BPF_REG_1; in array_map_gen_lookup() local 217 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value)); in array_map_gen_lookup() 231 *insn++ = BPF_ALU64_REG(BPF_ADD, ret, map_ptr); in array_map_gen_lookup() 1353 const int map_ptr = BPF_REG_1; in array_of_map_gen_lookup() local 1356 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value)); in array_of_map_gen_lookup() 1368 *insn++ = BPF_ALU64_REG(BPF_ADD, ret, map_ptr); in array_of_map_gen_lookup()
|
D | btf.c | 6391 off_desc = bpf_map_kptr_off_contains(reg->map_ptr, reg->off + reg->var_off.value); in btf_check_func_arg_match()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/ |
D | fw.h | 120 __be64 map_ptr; member
|
D | verifier.c | 99 offmap = map_to_offmap(reg1->map_ptr); in nfp_bpf_map_update_value_ok() 433 offmap = map_to_offmap(reg->map_ptr); in nfp_bpf_map_mark_used()
|
D | offload.c | 458 map_id_full = be64_to_cpu(cbe->map_ptr); in nfp_bpf_event_output()
|
/linux-6.1.9/include/linux/ |
D | bpf_verifier.h | 59 struct bpf_map *map_ptr; member
|
/linux-6.1.9/Documentation/bpf/ |
D | verifier.rst | 442 R0=map_ptr R10=fp 469 R0=map_ptr R10=fp
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_bufs.c | 381 enum drm_map_flags flags, struct drm_local_map **map_ptr) in drm_legacy_addmap() argument 388 *map_ptr = list->map; in drm_legacy_addmap()
|