Fix: tests: support systems where PAGE_SIZE is not 4096
[lttng-tools.git] / tests / regression / tools / snapshots / ust_test
index f05846f3e34bf0840b9c840aa821d97847db96f8..54e1d88a02eb01e43745a05b0414df1aa75ef36e 100755 (executable)
@@ -181,9 +181,12 @@ function test_ust_local_snapshot ()
 
 function test_ust_local_snapshot_max_size ()
 {
 
 function test_ust_local_snapshot_max_size ()
 {
-       subbuf_size=8192
+       page_size=`getconf PAGE_SIZE`
        num_cpus=`nproc`
 
        num_cpus=`nproc`
 
+       # 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))
 
        # The minimum size limit is min(subbuf_size) * nb_streams
        max_size=$(($subbuf_size*$num_cpus))
 
This page took 0.024557 seconds and 5 git commands to generate.