Home
last modified time | relevance | path

Searched refs:write_buffer (Results 1 – 10 of 10) sorted by relevance

/llvm-project/compiler-rt/test/builtins/Unit/
H A Dclear_cache_test.c53 uint8_t *write_buffer = mmap(0, kSize, in main() local
57 if (write_buffer == MAP_FAILED) in main()
59 uint8_t *execution_buffer = mremap(write_buffer, kSize, NULL, kSize, in main()
64 if (mprotect(write_buffer, kSize, PROT_READ | PROT_WRITE) == -1) in main()
74 uint8_t *write_buffer = execution_buffer; in main() local
85 uint8_t *write_buffer = execution_buffer; in main() local
89 memcpy_f(write_buffer, func1, kSize); in main()
96 memcpy_f(write_buffer, func2, kSize); in main()
/llvm-project/compiler-rt/lib/profile/
H A DGCDAProfiling.c75 static unsigned char *write_buffer = NULL; variable
163 write_buffer = realloc(write_buffer, size); in resize_write_buffer()
169 memcpy(&write_buffer[cur_pos], s, len); in write_bytes()
192 val = *(uint32_t*)&write_buffer[cur_pos]; in read_32bit_value()
244 write_buffer = MapViewOfFile(mmap_handle, FILE_MAP_WRITE, 0, 0, file_size); in map_file()
245 if (write_buffer == NULL) { in map_file()
252 write_buffer = mmap(0, file_size, PROT_READ | PROT_WRITE, in map_file()
254 if (write_buffer == (void *)-1) { in map_file()
267 if (!UnmapViewOfFile(write_buffer)) { in unmap_file()
[all...]
/llvm-project/compiler-rt/test/asan/TestCases/Linux/
H A Dprintf-fortify-2.c10 char *write_buffer = (char *)malloc(1); in foo() local
12 snprintf(write_buffer, 4096, "%s_%s", "one", "two"); in foo()
13 return write_buffer[0]; in foo()
H A Dprintf-fortify-1.c10 char *write_buffer = (char *)malloc(1); in foo() local
12 sprintf(write_buffer, "%s_%s", "one", "two"); in foo()
13 return write_buffer[0]; in foo()
H A Dprintf-fortify-3.c11 char *write_buffer = (char *)malloc(1); in foo() local
15 vsprintf(write_buffer, format, ap); in foo()
17 return write_buffer[0]; in foo()
H A Dprintf-fortify-4.c11 char *write_buffer = (char *)malloc(1); in foo() local
15 vsnprintf(write_buffer, 4096, format, ap); in foo()
17 return write_buffer[0]; in foo()
/llvm-project/libc/test/src/string/
H A Dmemset_test.cpp42 const Page write_buffer = pages.GetPageA().WithAccess(PROT_WRITE); in TEST()
51 uint8_t *destinations[2] = {write_buffer.bottom(size), in TEST()
52 write_buffer.top(size)}; in TEST()
41 const Page write_buffer = pages.GetPageA().WithAccess(PROT_WRITE); TEST() local
H A Dmemcpy_test.cpp45 const Page write_buffer = pages.GetPageA().WithAccess(PROT_WRITE); in TEST()
63 uint8_t *destinations[2] = {write_buffer.bottom(size), in TEST()
64 write_buffer.top(size)}; in TEST()
44 const Page write_buffer = pages.GetPageA().WithAccess(PROT_WRITE); TEST() local
/llvm-project/compiler-rt/test/profile/
H A Dinstrprof-without-libc.c28 int write_buffer(uint64_t, const char *); in main()
/llvm-project/mlir/include/mlir/Dialect/Tosa/IR/
H A DTosaUtilOps.td110 let summary = "write_buffer operator";