Tests: use configured processor count in snapshot tests
[lttng-tools.git] / tests / regression / tools / snapshots / ust_test
index f05846f3e34bf0840b9c840aa821d97847db96f8..f65906f11fe5d8aa3e7ddbaba77de86c9e285bf5 100755 (executable)
@@ -181,8 +181,11 @@ function test_ust_local_snapshot ()
 
 function test_ust_local_snapshot_max_size ()
 {
-       subbuf_size=8192
-       num_cpus=`nproc`
+       page_size=`getconf PAGE_SIZE`
+       num_cpus=$(conf_proc_count)
+
+       # The minimum subbuf size is the platform PAGE_SIZE
+       subbuf_size=$(($page_size*2))
 
        # The minimum size limit is min(subbuf_size) * nb_streams
        max_size=$(($subbuf_size*$num_cpus))
@@ -265,7 +268,7 @@ function enable_channel_per_uid_mmap_overwrite()
 
 function test_ust_per_uid_local_snapshot ()
 {
-       diag "Test local UST snapshots"
+       diag "Test per-uid local UST snapshots"
        create_lttng_session_no_output $SESSION_NAME
        enable_channel_per_uid_mmap_overwrite $SESSION_NAME $CHANNEL_NAME
        enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
This page took 0.025698 seconds and 5 git commands to generate.