projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: metadata stream is not marked as quiescent after packet commit
[lttng-tools.git]
/
src
/
common
/
pipe.h
diff --git
a/src/common/pipe.h
b/src/common/pipe.h
index 2d4fc967d615d5520e20de6098c561ac49148850..01fe8824244184a0843b1f1df914ad02136b9167 100644
(file)
--- a/
src/common/pipe.h
+++ b/
src/common/pipe.h
@@
-20,6
+20,7
@@
#include <pthread.h>
#include <common/macros.h>
#include <pthread.h>
#include <common/macros.h>
+#include <sys/types.h>
enum lttng_pipe_state {
LTTNG_PIPE_STATE_OPENED = 1,
enum lttng_pipe_state {
LTTNG_PIPE_STATE_OPENED = 1,
@@
-50,7
+51,7
@@
struct lttng_pipe {
/*
* Return 1 if read side is open else 0.
*/
/*
* Return 1 if read side is open else 0.
*/
-static inline int lttng_pipe_is_read_open(struct lttng_pipe *pipe)
+static inline int lttng_pipe_is_read_open(
const
struct lttng_pipe *pipe)
{
return pipe->r_state == LTTNG_PIPE_STATE_OPENED ? 1 : 0;
}
{
return pipe->r_state == LTTNG_PIPE_STATE_OPENED ? 1 : 0;
}
@@
-58,17
+59,17
@@
static inline int lttng_pipe_is_read_open(struct lttng_pipe *pipe)
/*
* Return 1 if write side is open else 0.
*/
/*
* Return 1 if write side is open else 0.
*/
-static inline int lttng_pipe_is_write_open(struct lttng_pipe *pipe)
+static inline int lttng_pipe_is_write_open(
const
struct lttng_pipe *pipe)
{
return pipe->w_state == LTTNG_PIPE_STATE_OPENED ? 1 : 0;
}
{
return pipe->w_state == LTTNG_PIPE_STATE_OPENED ? 1 : 0;
}
-static inline int lttng_pipe_get_readfd(struct lttng_pipe *pipe)
+static inline int lttng_pipe_get_readfd(
const
struct lttng_pipe *pipe)
{
return pipe->fd[0];
}
{
return pipe->fd[0];
}
-static inline int lttng_pipe_get_writefd(struct lttng_pipe *pipe)
+static inline int lttng_pipe_get_writefd(
const
struct lttng_pipe *pipe)
{
return pipe->fd[1];
}
{
return pipe->fd[1];
}
This page took
0.025156 seconds
and
4
git commands to generate.