summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
db08491)
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`
NUM_TESTS=74
NUM_CPUS=`nproc`
+PAGE_SIZE=$(getconf PAGE_SIZE)
source $TESTDIR/utils/utils.sh
source $TESTDIR/utils/utils.sh
$TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-channel \
-u $channel_name -s $sess_name \
$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"
--overwrite >/dev/null 2>&1
ok $? "$test_name"
session_name=$(randstring 16 0)
channel_name="channel"
event_name="tp:tptest"
session_name=$(randstring 16 0)
channel_name="channel"
event_name="tp:tptest"
expected_max=$(($num_iter - 1))
diag "Test tracefile count limit : $count_limit tracefiles"
expected_max=$(($num_iter - 1))
diag "Test tracefile count limit : $count_limit tracefiles"