projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ust-fd: Add close_range declaration
[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..d2fadb771b9aae9878d02afc2499848244c57870 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
@@
-234,7
+235,7
@@
void channel_backend_reset(struct channel_backend *chanb)
* num_subbuf_order, buf_size_order, extra_reader_sb, num_subbuf,
* priv, notifiers, config, cpumask and name.
*/
* num_subbuf_order, buf_size_order, extra_reader_sb, num_subbuf,
* priv, notifiers, config, cpumask and name.
*/
- chanb->start_t
sc
= config->cb.ring_buffer_clock_read(chan);
+ chanb->start_t
imestamp
= config->cb.ring_buffer_clock_read(chan);
}
/**
}
/**
@@
-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));
@@
-379,7
+382,7
@@
int channel_backend_init(struct channel_backend *chanb,
if (ret)
goto free_bufs;
}
if (ret)
goto free_bufs;
}
- chanb->start_t
sc
= config->cb.ring_buffer_clock_read(chan);
+ chanb->start_t
imestamp
= config->cb.ring_buffer_clock_read(chan);
return 0;
return 0;
This page took
0.032687 seconds
and
4
git commands to generate.