Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/mem/thp/
Dthp04.c35 static char *write_thp, *read_thp; variable
84 write_thp = alloc_zero_page((void *)thp_size); in setup()
87 if (write_thp[i]) in setup()
92 read_thp = alloc_zero_page(write_thp + 2 * thp_size); in setup()
93 write_ptr = (int *)(write_thp + thp_size - sizeof(int)); in setup()
108 madvise(write_thp, thp_size, MADV_DONTNEED); in thread_run()
130 madvise(write_thp, thp_size, MADV_DONTNEED); in run()
158 if (write_thp) in cleanup()
159 SAFE_MUNMAP(write_thp, thp_size); in cleanup()