Add get mmap base
[lttng-ust.git] / libustctl / ustctl.c
index abe6d034bb4211f7941da8dcec40cb4a56325cbc..735e63cb6f7d2cb58f182585b07620b087df8457 100644 (file)
@@ -479,6 +479,12 @@ void ustctl_close_stream_read(struct shm_handle *handle,
 
 /* For mmap mode, readable without "get" operation */
 
+void *ustctl_get_mmap_base(struct shm_handle *handle,
+               struct lib_ring_buffer *buf)
+{
+       return shmp(handle, buf->backend.memory_map);
+}
+
 /* returns the length to mmap. */
 int ustctl_get_mmap_len(struct shm_handle *handle,
                struct lib_ring_buffer *buf,
This page took 0.023058 seconds and 4 git commands to generate.