Searched refs:HPAGE_SIZE (Results 1 – 3 of 3) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | transhuge-stress.c | 23 #define HPAGE_SIZE (1 << HPAGE_SHIFT) macro 35 if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, in allocate_transhuge() 40 if (madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE)) in allocate_transhuge() 88 len -= len % HPAGE_SIZE; in main() 89 ptr = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, in main() 93 ptr += HPAGE_SIZE - (uintptr_t)ptr % HPAGE_SIZE; in main() 109 for (p = ptr; p < ptr + len; p += HPAGE_SIZE) { in main() 133 if (madvise(p, HPAGE_SIZE - PAGE_SIZE, MADV_DONTNEED)) in main()
|
/external/ltp/testcases/kernel/numa/ |
D | numa01.sh | 56 export HPAGE_SIZE=$(awk '/Hugepagesize:/ {print $2}' /proc/meminfo) 331 Ori_hpgs=$(cat ${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages) 333 echo $New_hpgs >${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages 335 Chk_hpgs=$(cat ${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages) 348 if [ "$Mem_huge" -lt "$HPAGE_SIZE" ]; then 352 echo $Ori_hpgs >${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages 357 echo $Ori_hpgs >${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages 389 if [ $(echo "$Mem_curr < $HPAGE_SIZE * 2" |bc ) -eq 1 ]; then
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
D | protection_keys.c | 53 #define HPAGE_SIZE (1UL<<21) macro 781 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_anon_huge() 788 ptr = ALIGN_PTR_UP(ptr, HPAGE_SIZE); in malloc_pkey_anon_huge() 790 ret = madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE); in malloc_pkey_anon_huge() 792 ret = madvise(ptr, HPAGE_SIZE, MADV_WILLNEED); in malloc_pkey_anon_huge() 794 memset(ptr, 0, HPAGE_SIZE); in malloc_pkey_anon_huge() 851 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_hugetlb() 1226 if (size >= HPAGE_SIZE) in test_mprotect_with_pkey_0() 1227 size = HPAGE_SIZE; in test_mprotect_with_pkey_0() 1248 int *plain_ptr_unaligned = malloc(HPAGE_SIZE); in test_ptrace_of_child()
|