projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce LTTNG_UST_MAP_POPULATE_POLICY environment variable
[lttng-ust.git]
/
src
/
common
/
ringbuffer
/
ring_buffer_backend.c
diff --git
a/src/common/ringbuffer/ring_buffer_backend.c
b/src/common/ringbuffer/ring_buffer_backend.c
index 27c335d50129aa3594897d1957fe4a237fc6078d..82dc247adb16c5240c6249a87778f7842d75e81e 100644
(file)
--- a/
src/common/ringbuffer/ring_buffer_backend.c
+++ b/
src/common/ringbuffer/ring_buffer_backend.c
@@
-21,6
+21,7
@@
#include "common/smp.h"
#include "shm.h"
#include "common/align.h"
#include "common/smp.h"
#include "shm.h"
#include "common/align.h"
+#include "common/populate.h"
/**
* lib_ring_buffer_backend_allocate - allocate a channel buffer
/**
* lib_ring_buffer_backend_allocate - allocate a channel buffer
@@
-346,7
+347,8
@@
int channel_backend_init(struct channel_backend *chanb,
struct shm_object *shmobj;
shmobj = shm_object_table_alloc(handle->table, shmsize,
struct shm_object *shmobj;
shmobj = shm_object_table_alloc(handle->table, shmsize,
- SHM_OBJECT_SHM, stream_fds[i], i);
+ SHM_OBJECT_SHM, stream_fds[i], i,
+ lttng_ust_map_populate_cpu_is_enabled(i));
if (!shmobj)
goto end;
align_shm(shmobj, __alignof__(struct lttng_ust_ring_buffer));
if (!shmobj)
goto end;
align_shm(shmobj, __alignof__(struct lttng_ust_ring_buffer));
@@
-365,7
+367,8
@@
int channel_backend_init(struct channel_backend *chanb,
struct lttng_ust_ring_buffer *buf;
shmobj = shm_object_table_alloc(handle->table, shmsize,
struct lttng_ust_ring_buffer *buf;
shmobj = shm_object_table_alloc(handle->table, shmsize,
- SHM_OBJECT_SHM, stream_fds[0], -1);
+ SHM_OBJECT_SHM, stream_fds[0], -1,
+ lttng_ust_map_populate_is_enabled());
if (!shmobj)
goto end;
align_shm(shmobj, __alignof__(struct lttng_ust_ring_buffer));
if (!shmobj)
goto end;
align_shm(shmobj, __alignof__(struct lttng_ust_ring_buffer));
This page took
0.023369 seconds
and
4
git commands to generate.