Home
last modified time | relevance | path

Searched refs:mapping (Results 1 – 18 of 18) sorted by relevance

/tools/testing/selftests/arm64/mte/
Dmte_common_util.c123 static void *__mte_allocate_memory_range(size_t size, int mem_type, int mapping, in __mte_allocate_memory_range() argument
146 map_flag = mapping; in __mte_allocate_memory_range()
149 if (!(mapping & MAP_SHARED)) in __mte_allocate_memory_range()
168 void *mte_allocate_memory_tag_range(size_t size, int mem_type, int mapping, in mte_allocate_memory_tag_range() argument
171 return __mte_allocate_memory_range(size, mem_type, mapping, range_before, in mte_allocate_memory_tag_range()
175 void *mte_allocate_memory(size_t size, int mem_type, int mapping, bool tags) in mte_allocate_memory() argument
177 return __mte_allocate_memory_range(size, mem_type, mapping, 0, 0, tags, -1); in mte_allocate_memory()
180 void *mte_allocate_file_memory(size_t size, int mem_type, int mapping, bool tags, int fd) in mte_allocate_file_memory() argument
202 return __mte_allocate_memory_range(size, mem_type, mapping, 0, 0, tags, fd); in mte_allocate_file_memory()
205 void *mte_allocate_file_memory_tag_range(size_t size, int mem_type, int mapping, in mte_allocate_file_memory_tag_range() argument
[all …]
Dmte_common_util.h45 void *mte_allocate_memory(size_t size, int mem_type, int mapping, bool tags);
46 void *mte_allocate_memory_tag_range(size_t size, int mem_type, int mapping,
48 void *mte_allocate_file_memory(size_t size, int mem_type, int mapping,
50 void *mte_allocate_file_memory_tag_range(size_t size, int mem_type, int mapping,
Dcheck_mmap_options.c60 static int check_anonymous_memory_mapping(int mem_type, int mode, int mapping, int tag_check) in check_anonymous_memory_mapping() argument
69 map_ptr = (char *)mte_allocate_memory(map_size, mem_type, mapping, false); in check_anonymous_memory_mapping()
91 static int check_file_memory_mapping(int mem_type, int mode, int mapping, int tag_check) in check_file_memory_mapping() argument
105 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_file_memory_mapping()
130 static int check_clear_prot_mte_flag(int mem_type, int mode, int mapping) in check_clear_prot_mte_flag() argument
140 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, in check_clear_prot_mte_flag()
161 ptr = (char *)mte_allocate_file_memory_tag_range(sizes[run], mem_type, mapping, in check_clear_prot_mte_flag()
Dcheck_child_memory.c84 static int check_child_memory_mapping(int mem_type, int mode, int mapping) in check_child_memory_mapping() argument
93 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, in check_child_memory_mapping()
106 static int check_child_file_mapping(int mem_type, int mode, int mapping) in check_child_file_mapping() argument
119 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_child_file_mapping()
Dcheck_ksm_options.c98 static int check_madvise_options(int mem_type, int mode, int mapping) in check_madvise_options() argument
110 ptr = mte_allocate_memory(TEST_UNIT * page_sz, mem_type, mapping, true); in check_madvise_options()
Dcheck_user_mem.c34 static int check_usermem_access_fault(int mem_type, int mode, int mapping, in check_usermem_access_fault() argument
55 ptr = mte_allocate_memory(len, mem_type, mapping, true); in check_usermem_access_fault()
Dcheck_buffer_fill.c365 static int check_memory_initial_tags(int mem_type, int mode, int mapping) in check_memory_initial_tags() argument
374 ptr = (char *)mte_allocate_memory(sizes[run], mem_type, mapping, false); in check_memory_initial_tags()
387 ptr = (char *)mte_allocate_file_memory(sizes[run], mem_type, mapping, false, fd); in check_memory_initial_tags()
/tools/testing/selftests/mm/
Dksm_tests.c200 static void *allocate_memory(void *ptr, int prot, int mapping, char data, size_t map_size) in allocate_memory() argument
202 void *map_ptr = mmap(ptr, map_size, PROT_WRITE, mapping, -1, 0); in allocate_memory()
347 static int check_ksm_merge(int merge_type, int mapping, int prot, in check_ksm_merge() argument
359 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count); in check_ksm_merge()
381 static int check_ksm_unmerge(int merge_type, int mapping, int prot, int timeout, size_t page_size) in check_ksm_unmerge() argument
393 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count); in check_ksm_unmerge()
421 static int check_ksm_zero_page_merge(int merge_type, int mapping, int prot, long page_count, in check_ksm_zero_page_merge() argument
436 map_ptr = allocate_memory(NULL, prot, mapping, 0, page_size * page_count); in check_ksm_zero_page_merge()
486 static int check_ksm_numa_merge(int merge_type, int mapping, int prot, int timeout, in check_ksm_numa_merge() argument
550 static int ksm_merge_hugepages_time(int merge_type, int mapping, int prot, in ksm_merge_hugepages_time() argument
[all …]
/tools/testing/nvdimm/test/
Dndtest.c141 .mapping = region0_mapping,
148 .mapping = region1_mapping,
167 .mapping = region6_mapping,
412 int i, ndimm = region->mapping[0].dimm; in ndtest_create_region()
424 ndr_desc->mapping = mappings; in ndtest_create_region()
444 ndimm = region->mapping[i].dimm; in ndtest_create_region()
445 mappings[i].start = region->mapping[i].start; in ndtest_create_region()
446 mappings[i].size = region->mapping[i].size; in ndtest_create_region()
447 mappings[i].position = region->mapping[i].position; in ndtest_create_region()
Dndtest.h94 struct ndtest_mapping *mapping; member
Dnfit.c688 nd_mapping = &nd_region->mapping[nd_region->ndr_mappings - 1]; in nfit_test_search_spa()
/tools/perf/pmu-events/
DREADME61 - A 'mapping table' that maps each CPU of the architecture, to its
83 2. The 'pmu-events.h' has an extern declaration for the mapping table
103 It is required even if such mapping is 1:1.
/tools/testing/selftests/bpf/
Dtest_bpftool_synctypes.py199 mapping = {}
204 mapping[name] = text
206 return mapping
/tools/testing/selftests/x86/
Dtest_shadow_stack.c543 void *mapping; member
578 cur->mapping = test_map; in test_guard_gap()
587 munmap(cur->mapping, PAGE_SIZE); in test_guard_gap()
/tools/perf/Documentation/
Dtopdown.txt88 /* Memory mapping the fd permits _rdpmc calls from userspace */
108 /* Memory mapping the fd permits _rdpmc calls from userspace */
Dperf-record.txt163 within a single mapping. MMAP events (or /proc/<pid>/maps) can be
/tools/perf/
Ddesign.txt234 code, even after the mapping (or even the whole process) is gone,
/tools/memory-model/Documentation/
Dexplanation.txt353 kernel code written in C, and the mapping from C to machine code can