projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
liblttng-ust-ctl: Implement SIGBUS handling
[lttng-ust.git]
/
src
/
common
/
ringbuffer
/
ring_buffer_frontend.c
diff --git
a/src/common/ringbuffer/ring_buffer_frontend.c
b/src/common/ringbuffer/ring_buffer_frontend.c
index 62543fa2b6e63499daea3dcad231065e94b1da4e..4d06bf63140c6218c8abf7b278cd3f7b48026194 100644
(file)
--- a/
src/common/ringbuffer/ring_buffer_frontend.c
+++ b/
src/common/ringbuffer/ring_buffer_frontend.c
@@
-1182,7
+1182,8
@@
struct lttng_ust_ring_buffer *channel_get_ring_buffer(
struct lttng_ust_shm_handle *handle,
int *shm_fd, int *wait_fd,
int *wakeup_fd,
struct lttng_ust_shm_handle *handle,
int *shm_fd, int *wait_fd,
int *wakeup_fd,
- uint64_t *memory_map_size)
+ uint64_t *memory_map_size,
+ void **memory_map_addr)
{
struct shm_ref *ref;
{
struct shm_ref *ref;
@@
-1198,6
+1199,7
@@
struct lttng_ust_ring_buffer *channel_get_ring_buffer(
*wakeup_fd = shm_get_wakeup_fd(handle, ref);
if (shm_get_shm_size(handle, ref, memory_map_size))
return NULL;
*wakeup_fd = shm_get_wakeup_fd(handle, ref);
if (shm_get_shm_size(handle, ref, memory_map_size))
return NULL;
+ *memory_map_addr = handle->table->objects[ref->index].memory_map;
return shmp(handle, chan->backend.buf[cpu].shmp);
}
return shmp(handle, chan->backend.buf[cpu].shmp);
}
This page took
0.023879 seconds
and
4
git commands to generate.