Set the tracefile size according to the platform page_size and increase
the number of iterations to properly test the rotation.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
NUM_TESTS=74
NUM_CPUS=`nproc`
+PAGE_SIZE=$(getconf PAGE_SIZE)
source $TESTDIR/utils/utils.sh
$TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-channel \
-u $channel_name -s $sess_name \
- -C 4096 -W $tracefile_count_limit \
+ -C $(($PAGE_SIZE*3)) -W $tracefile_count_limit \
--overwrite >/dev/null 2>&1
ok $? "$test_name"
session_name=$(randstring 16 0)
channel_name="channel"
event_name="tp:tptest"
- num_iter=1000
+ num_iter=100000
expected_max=$(($num_iter - 1))
diag "Test tracefile count limit : $count_limit tracefiles"