Searched refs:execution_buffer (Results 1 – 4 of 4) sorted by relevance
/external/llvm-project/compiler-rt/test/builtins/Unit/ |
D | clear_cache_test.c | 59 uint8_t *execution_buffer = mremap(write_buffer, kSize, NULL, kSize, in main() local 61 if (execution_buffer == MAP_FAILED) in main() 66 if (mprotect(execution_buffer, kSize, PROT_READ | PROT_EXEC) == -1) in main() 69 uint8_t *execution_buffer = mmap(0, kSize, in main() local 72 if (execution_buffer == MAP_FAILED) in main() 74 uint8_t *write_buffer = execution_buffer; in main() 81 uint8_t* execution_buffer = MapViewOfFile( in main() local 83 if (execution_buffer == NULL) in main() 85 uint8_t *write_buffer = execution_buffer; in main() 90 pfunc f1 = (pfunc)realign_f(execution_buffer, func1, kSize); in main() [all …]
|
D | enable_execute_stack_test.c | 32 unsigned char execution_buffer[128]; in main() local 34 __enable_execute_stack(execution_buffer); in main() 37 pfunc f1 = (pfunc)memcpy_f(execution_buffer, func1, 128); in main() 38 __clear_cache(execution_buffer, &execution_buffer[128]); in main() 44 pfunc f2 = (pfunc)memcpy_f(execution_buffer, func2, 128); in main() 45 __clear_cache(execution_buffer, &execution_buffer[128]); in main()
|
/external/compiler-rt/test/builtins/Unit/ |
D | clear_cache_test.c | 54 unsigned char execution_buffer[128]; variable 59 char* start = (char*)((uintptr_t)execution_buffer & (-4095)); in main() 60 char* end = (char*)((uintptr_t)(&execution_buffer[128+4096]) & (-4095)); in main() 73 pfunc f1 = (pfunc)memcpy_f(execution_buffer, func1, 128); in main() 74 __clear_cache(execution_buffer, &execution_buffer[128]); in main() 79 pfunc f2 = (pfunc)memcpy_f(execution_buffer, func2, 128); in main() 80 __clear_cache(execution_buffer, &execution_buffer[128]); in main()
|
D | enable_execute_stack_test.c | 63 unsigned char execution_buffer[128]; in main() local 65 __enable_execute_stack(execution_buffer); in main() 68 pfunc f1 = (pfunc)memcpy_f(execution_buffer, func1, 128); in main() 69 __clear_cache(execution_buffer, &execution_buffer[128]); in main() 74 pfunc f2 = (pfunc)memcpy_f(execution_buffer, func2, 128); in main() 75 __clear_cache(execution_buffer, &execution_buffer[128]); in main()
|