On systems with a high number of CPUs and slow disk, taking snapshots
can take a long time. When running a long regression test, the tests
sometimes outlive the test application.
The test application then exits since the required number of
iterations was completed
(NR_ITER=
2000000).
Set the iterations parameter to -1 to ensure the application keeps
producing events for the duration of the test.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
TESTAPP_PATH="$TESTDIR/utils/testapp"
TESTAPP_NAME="gen-ust-events"
TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
TESTAPP_PATH="$TESTDIR/utils/testapp"
TESTAPP_NAME="gen-ust-events"
TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
NR_USEC_WAIT=100
APPS_PID=
NR_USEC_WAIT=100
APPS_PID=
function test_ust_list_output ()
{
output_names=("randomname" "somesnapshot")
function test_ust_list_output ()
{
output_names=("randomname" "somesnapshot")
- NR_ITER=2000000
- NR_USEC_WAIT=100
diag "Test UST snapshot output listing"
create_lttng_session_no_output $SESSION_NAME
diag "Test UST snapshot output listing"
create_lttng_session_no_output $SESSION_NAME
function test_ust_local_snapshot ()
{
function test_ust_local_snapshot ()
{
NR_USEC_WAIT=100
diag "Test local UST snapshots"
NR_USEC_WAIT=100
diag "Test local UST snapshots"
function test_ust_local_snapshot_max_size ()
{
function test_ust_local_snapshot_max_size ()
{
NR_USEC_WAIT=100
page_size=`getconf PAGE_SIZE`
num_cpus=$(conf_proc_count)
NR_USEC_WAIT=100
page_size=`getconf PAGE_SIZE`
num_cpus=$(conf_proc_count)
function test_ust_local_snapshot_large_metadata ()
{
function test_ust_local_snapshot_large_metadata ()
{
- NR_ITER=2000000
- NR_USEC_WAIT=100
LM_EVENT="tp:tptest1,tp:tptest2,tp:tptest3,tp:tptest4,tp:tptest5"
LM_PATH="$TESTDIR/utils/testapp"
LM_NAME="gen-ust-nevents"
LM_EVENT="tp:tptest1,tp:tptest2,tp:tptest3,tp:tptest4,tp:tptest5"
LM_PATH="$TESTDIR/utils/testapp"
LM_NAME="gen-ust-nevents"
function enable_channel_per_uid_mmap_overwrite()
{
function enable_channel_per_uid_mmap_overwrite()
{
- NR_ITER=2000000
- NR_USEC_WAIT=100
sess_name=$1
channel_name=$2
sess_name=$1
channel_name=$2
function test_ust_per_uid_local_snapshot ()
{
function test_ust_per_uid_local_snapshot ()
{
+ NR_ITER=-1
+ NR_USEC_WAIT=100
diag "Test per-uid local UST snapshots"
create_lttng_session_no_output $SESSION_NAME
enable_channel_per_uid_mmap_overwrite $SESSION_NAME $CHANNEL_NAME
diag "Test per-uid local UST snapshots"
create_lttng_session_no_output $SESSION_NAME
enable_channel_per_uid_mmap_overwrite $SESSION_NAME $CHANNEL_NAME
function test_ust_per_uid_local_snapshot_post_mortem ()
{
function test_ust_per_uid_local_snapshot_post_mortem ()
{
NR_USEC_WAIT=100
diag "Test local UST snapshots post-mortem"
NR_USEC_WAIT=100
diag "Test local UST snapshots post-mortem"
function test_ust_local_snapshots ()
{
function test_ust_local_snapshots ()
{
NR_USEC_WAIT=100
diag "Test $NR_SNAPSHOT local UST snapshots"
NR_USEC_WAIT=100
diag "Test $NR_SNAPSHOT local UST snapshots"