projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: test kernel snapshot with discard buffers
[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..f65906f11fe5d8aa3e7ddbaba77de86c9e285bf5 100755
(executable)
--- a/
tests/regression/tools/snapshots/ust_test
+++ b/
tests/regression/tools/snapshots/ust_test
@@
-181,8
+181,11
@@
function test_ust_local_snapshot ()
function test_ust_local_snapshot_max_size ()
{
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))
# 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 ()
{
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
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.026528 seconds
and
4
git commands to generate.