Home
last modified time | relevance | path

Searched refs:MT_GRANULE_SIZE (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/arm64/mte/
Dcheck_tags_inclusion.c18 #define BUFFER_SIZE (5 * MT_GRANULE_SIZE)
48 ptr = (char *)mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); in check_single_included_tags()
49 if (check_allocated_memory(ptr, BUFFER_SIZE + MT_GRANULE_SIZE, in check_single_included_tags()
69 mte_free_memory_tag_range((void *)ptr, BUFFER_SIZE, mem_type, 0, MT_GRANULE_SIZE); in check_single_included_tags()
79 ptr = (char *)mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); in check_multiple_included_tags()
80 if (check_allocated_memory(ptr, BUFFER_SIZE + MT_GRANULE_SIZE, in check_multiple_included_tags()
101 mte_free_memory_tag_range((void *)ptr, BUFFER_SIZE, mem_type, 0, MT_GRANULE_SIZE); in check_multiple_included_tags()
110 ptr = (char *)mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); in check_all_included_tags()
111 if (check_allocated_memory(ptr, BUFFER_SIZE + MT_GRANULE_SIZE, in check_all_included_tags()
125 mte_free_memory_tag_range((void *)ptr, BUFFER_SIZE, mem_type, 0, MT_GRANULE_SIZE); in check_all_included_tags()
Dmte_helper.S67 add x0, x0, #MT_GRANULE_SIZE
68 sub x1, x1, #MT_GRANULE_SIZE
86 add x0, x0, #MT_GRANULE_SIZE
87 sub x1, x1, #MT_GRANULE_SIZE
Dcheck_child_memory.c18 #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()
Dcheck_buffer_fill.c14 #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()
Dmte_def.h41 #define MT_GRANULE_SIZE 16 macro
46 #define MT_ALIGN_GRANULE (MT_GRANULE_SIZE - 1)
Dcheck_mmap_options.c22 #define UNDERFLOW MT_GRANULE_SIZE
23 #define OVERFLOW MT_GRANULE_SIZE
29 1, 537, 989, 1269, MT_GRANULE_SIZE - 1, MT_GRANULE_SIZE,