projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Define _GNU_SOURCE for all implementation files rather than getcpu.h
[lttng-ust.git]
/
libringbuffer
/
ring_buffer_frontend.c
diff --git
a/libringbuffer/ring_buffer_frontend.c
b/libringbuffer/ring_buffer_frontend.c
index f558793a1626efd06b3cba986ab7a84cbe7f6fa7..ca19648f1d04f544d4f931bb29344fd3e43b65f4 100644
(file)
--- a/
libringbuffer/ring_buffer_frontend.c
+++ b/
libringbuffer/ring_buffer_frontend.c
@@
-38,6
+38,7
@@
* Dual LGPL v2.1/GPL v2 license.
*/
* Dual LGPL v2.1/GPL v2 license.
*/
+#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
@@
-92,7
+93,8
@@
__thread unsigned int lib_ring_buffer_nesting;
static
void lib_ring_buffer_print_errors(struct channel *chan,
struct lttng_ust_lib_ring_buffer *buf, int cpu,
static
void lib_ring_buffer_print_errors(struct channel *chan,
struct lttng_ust_lib_ring_buffer *buf, int cpu,
- struct lttng_ust_shm_handle *handle);
+ struct lttng_ust_shm_handle *handle)
+ __attribute__((unused));
/**
* lib_ring_buffer_reset - Reset ring buffer to initial values.
/**
* lib_ring_buffer_reset - Reset ring buffer to initial values.
@@
-420,7
+422,7
@@
struct lttng_ust_shm_handle *channel_create(const struct lttng_ust_lib_ring_buff
void *buf_addr, size_t subbuf_size,
size_t num_subbuf, unsigned int switch_timer_interval,
unsigned int read_timer_interval,
void *buf_addr, size_t subbuf_size,
size_t num_subbuf, unsigned int switch_timer_interval,
unsigned int read_timer_interval,
- int *
shm_fd, int *wait_fd, uint64_t
*memory_map_size)
+ int *
*shm_fd, int **wait_fd, uint64_t *
*memory_map_size)
{
int ret, cpu;
size_t shmsize, chansize;
{
int ret, cpu;
size_t shmsize, chansize;
@@
-610,8
+612,8
@@
struct lttng_ust_lib_ring_buffer *channel_get_ring_buffer(
const struct lttng_ust_lib_ring_buffer_config *config,
struct channel *chan, int cpu,
struct lttng_ust_shm_handle *handle,
const struct lttng_ust_lib_ring_buffer_config *config,
struct channel *chan, int cpu,
struct lttng_ust_shm_handle *handle,
- int *
shm_fd, int
*wait_fd,
- uint64_t *memory_map_size)
+ int *
*shm_fd, int *
*wait_fd,
+ uint64_t *
*
memory_map_size)
{
struct shm_ref *ref;
{
struct shm_ref *ref;
This page took
0.024397 seconds
and
4
git commands to generate.