@@ -73,7 +73,7 @@ du_test()
}
block_size=512
-page_size=$(getconf PAGESIZE)
+page_size=$(tst_getconf PAGESIZE)
if [ "$page_size" -lt 1024 ]; then
tst_brk TBROK "Page size < 1024"
fi
@@ -29,7 +29,7 @@ setup()
{
UUID=`uuidgen`
- PAGE_SIZE=`getconf PAGE_SIZE`
+ PAGE_SIZE=`tst_getconf PAGESIZE`
# Here get the size of the device and align it down to be the
# multiple of $PAGE_SIZE and use that as the size for testing.
@@ -34,7 +34,7 @@ setup()
tst_brkm TCONF "Test must be run with kernel 3.18.0 or newer"
fi
- local cpu_num=$(getconf _NPROCESSORS_ONLN)
+ local cpu_num=$(tst_getconf _NPROCESSORS_ONLN)
if [ $cpu_num -lt 2 ]; then
tst_brkm TCONF "We need 2 cpus at least to have test"
fi
@@ -41,7 +41,7 @@ export TST_COUNT=0
export TMP=${TMP:-/tmp}
cd $TMP
-PAGE_SIZE=$(getconf PAGESIZE)
+PAGE_SIZE=$(tst_getconf PAGESIZE)
TOT_MEM_LIMIT=$PAGE_SIZE
ACTIVE_MEM_LIMIT=$PAGE_SIZE
@@ -29,9 +29,9 @@ if [ "x$(grep -w memory /proc/cgroups | cut -f4)" != "x1" ]; then
tst_brkm TCONF "Kernel does not support the memory resource controller"
fi
-PAGESIZE=$(getconf PAGESIZE)
+PAGESIZE=$(tst_getconf PAGESIZE)
if [ $? -ne 0 ]; then
- tst_brkm TBROK "getconf PAGESIZE failed"
+ tst_brkm TBROK "tst_getconf PAGESIZE failed"
fi
HUGEPAGESIZE=$(awk '/Hugepagesize/ {print $2}' /proc/meminfo)
@@ -75,7 +75,7 @@ check_for_support_numa()
setup()
{
export MB=$((1024*1024))
- export PAGE_SIZE=$(getconf PAGE_SIZE)
+ export PAGE_SIZE=$(tst_getconf PAGESIZE)
export HPAGE_SIZE=$(awk '/Hugepagesize:/ {print $2}' /proc/meminfo)
total_nodes=0
@@ -421,9 +421,9 @@ fi
if [ "$TST_NEEDS_CHECKPOINTS" = "1" ]; then
LTP_IPC_PATH="/dev/shm/ltp_${TCID}_$$"
- LTP_IPC_SIZE=$(getconf PAGESIZE)
+ LTP_IPC_SIZE=$(tst_getconf PAGESIZE)
if [ $? -ne 0 ]; then
- tst_brkm TBROK "getconf PAGESIZE failed"
+ tst_brkm TBROK "tst_getconf PAGESIZE failed"
fi
ROD_SILENT dd if=/dev/zero of="$LTP_IPC_PATH" bs="$LTP_IPC_SIZE" count=1