Home
last modified time | relevance | path

Searched refs:DEFAULT_PS (Results 1 - 2 of 2) sorted by relevance

/third_party/ltp/testcases/kernel/mce-test/tsrc/
H A Dttranshuge.c67 #define DEFAULT_PS 4096UL macro
111 DEFAULT_PS, in print_prep_info()
121 * access all the memory except one DEFAULT_PS size memory
134 ((addr + i) < (corrupt_page_addr + DEFAULT_PS))) in read_mem()
174 unsigned long madvise_addr = start & ~PS_MASK(DEFAULT_PS); in request_thp_with_madvise()
175 unsigned long madvise_size = REQ_MEM_SIZE - (start % DEFAULT_PS); in request_thp_with_madvise()
239 corrupt_page_addr = (char *)(thp_addr + corrupt_page * DEFAULT_PS); in prep_injection()
252 if (madvise((void *)corrupt_page_addr, DEFAULT_PS, MADV_POISON) != 0) { in do_injection()
/third_party/ltp/testcases/kernel/mce-test/hwpoison/
H A Dttranshuge.c67 #define DEFAULT_PS 4096UL macro
111 DEFAULT_PS, in print_prep_info()
121 * access all the memory except one DEFAULT_PS size memory
134 ((addr + i) < (corrupt_page_addr + DEFAULT_PS))) in read_mem()
174 unsigned long madvise_addr = start & ~PS_MASK(DEFAULT_PS); in request_thp_with_madvise()
175 unsigned long madvise_size = REQ_MEM_SIZE - (start % DEFAULT_PS); in request_thp_with_madvise()
239 corrupt_page_addr = (char *)(thp_addr + corrupt_page * DEFAULT_PS); in prep_injection()
252 if (madvise((void *)corrupt_page_addr, DEFAULT_PS, MADV_POISON) != 0) { in do_injection()

Completed in 2 milliseconds