projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: tests: support systems where PAGE_SIZE is not 4096
[lttng-tools.git]
/
tests
/
regression
/
tools
/
snapshots
/
ust_test
diff --git
a/tests/regression/tools/snapshots/ust_test
b/tests/regression/tools/snapshots/ust_test
index f05846f3e34bf0840b9c840aa821d97847db96f8..54e1d88a02eb01e43745a05b0414df1aa75ef36e 100755
(executable)
--- a/
tests/regression/tools/snapshots/ust_test
+++ b/
tests/regression/tools/snapshots/ust_test
@@
-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.024244 seconds
and
4
git commands to generate.