Searched refs:MT_GRANULE_SIZE (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/tools/testing/selftests/arm64/mte/ ! |
D | check_tags_inclusion.c | 18 #define BUFFER_SIZE (5 * MT_GRANULE_SIZE) 54 ptr = mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); in check_single_included_tags() 55 if (check_allocated_memory(ptr, BUFFER_SIZE + MT_GRANULE_SIZE, in check_single_included_tags() 77 mte_free_memory_tag_range(ptr, BUFFER_SIZE, mem_type, 0, MT_GRANULE_SIZE); in check_single_included_tags() 87 ptr = mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); in check_multiple_included_tags() 88 if (check_allocated_memory(ptr, BUFFER_SIZE + MT_GRANULE_SIZE, in check_multiple_included_tags() 109 mte_free_memory_tag_range(ptr, BUFFER_SIZE, mem_type, 0, MT_GRANULE_SIZE); in check_multiple_included_tags() 118 ptr = mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); in check_all_included_tags() 119 if (check_allocated_memory(ptr, BUFFER_SIZE + MT_GRANULE_SIZE, in check_all_included_tags() 135 mte_free_memory_tag_range(ptr, BUFFER_SIZE, mem_type, 0, MT_GRANULE_SIZE); in check_all_included_tags()
|
D | mte_helper.S | 69 add x0, x0, #MT_GRANULE_SIZE 70 sub x1, x1, #MT_GRANULE_SIZE 88 add x0, x0, #MT_GRANULE_SIZE 89 sub x1, x1, #MT_GRANULE_SIZE
|
D | check_child_memory.c | 18 #define BUFFER_SIZE (5 * MT_GRANULE_SIZE) 20 #define UNDERFLOW MT_GRANULE_SIZE 21 #define OVERFLOW MT_GRANULE_SIZE 25 1, 537, 989, 1269, MT_GRANULE_SIZE - 1, MT_GRANULE_SIZE, 50 for (i = 0 ; i < size ; i += MT_GRANULE_SIZE) { in check_child_tag_inheritance()
|
D | check_buffer_fill.c | 14 #define OVERFLOW_RANGE MT_GRANULE_SIZE 17 1, 555, 1033, MT_GRANULE_SIZE - 1, MT_GRANULE_SIZE, 355 for (i = 0 ; i < size ; i += MT_GRANULE_SIZE) { in compare_memory_tags() 434 evaluate_test(check_buffer_underflow_by_byte(USE_MMAP, MTE_SYNC_ERR, MT_GRANULE_SIZE), in main() 436 evaluate_test(check_buffer_underflow_by_byte(USE_MMAP, MTE_ASYNC_ERR, MT_GRANULE_SIZE), in main() 438 evaluate_test(check_buffer_underflow_by_byte(USE_MMAP, MTE_NONE_ERR, MT_GRANULE_SIZE), in main() 450 evaluate_test(check_buffer_overflow_by_byte(USE_MMAP, MTE_SYNC_ERR, MT_GRANULE_SIZE), in main() 452 evaluate_test(check_buffer_overflow_by_byte(USE_MMAP, MTE_ASYNC_ERR, MT_GRANULE_SIZE), in main() 454 evaluate_test(check_buffer_overflow_by_byte(USE_MMAP, MTE_NONE_ERR, MT_GRANULE_SIZE), in main()
|
D | mte_def.h | 41 #define MT_GRANULE_SIZE 16 macro 46 #define MT_ALIGN_GRANULE (MT_GRANULE_SIZE - 1)
|
D | check_mmap_options.c | 22 #define UNDERFLOW MT_GRANULE_SIZE 23 #define OVERFLOW MT_GRANULE_SIZE 29 1, 537, 989, 1269, MT_GRANULE_SIZE - 1, MT_GRANULE_SIZE,
|
D | check_user_mem.c | 200 int tag_lens[] = {0, MT_GRANULE_SIZE}; in main() 201 int tag_offsets[] = {page_sz, MT_GRANULE_SIZE}; in main()
|