projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement snapshot commands in lttng-sessiond
[lttng-tools.git]
/
src
/
common
/
consumer.h
diff --git
a/src/common/consumer.h
b/src/common/consumer.h
index 91039e8e956563c3f99d3de6f9cd0ca7dbb98251..d0986ef1e3203a420f2054b75da65ab94cdfcd77 100644
(file)
--- a/
src/common/consumer.h
+++ b/
src/common/consumer.h
@@
-54,6
+54,8
@@
enum lttng_consumer_command {
LTTNG_CONSUMER_CLOSE_METADATA,
LTTNG_CONSUMER_SETUP_METADATA,
LTTNG_CONSUMER_FLUSH_CHANNEL,
LTTNG_CONSUMER_CLOSE_METADATA,
LTTNG_CONSUMER_SETUP_METADATA,
LTTNG_CONSUMER_FLUSH_CHANNEL,
+ LTTNG_CONSUMER_SNAPSHOT_CHANNEL,
+ LTTNG_CONSUMER_SNAPSHOT_METADATA,
};
/* State of each fd in consumer */
};
/* State of each fd in consumer */
@@
-85,6
+87,8
@@
enum consumer_channel_type {
CONSUMER_CHANNEL_TYPE_DATA = 1,
};
CONSUMER_CHANNEL_TYPE_DATA = 1,
};
+extern struct lttng_consumer_global_data consumer_data;
+
struct stream_list {
struct cds_list_head head;
unsigned int count;
struct stream_list {
struct cds_list_head head;
unsigned int count;
@@
-222,6
+226,7
@@
struct lttng_consumer_stream {
* Lock to use the stream FDs since they are used between threads.
*
* This is nested INSIDE the consumer_data lock.
* Lock to use the stream FDs since they are used between threads.
*
* This is nested INSIDE the consumer_data lock.
+ * This is nested INSIDE the metadata cache lock.
* This is nested OUTSIDE consumer_relayd_sock_pair lock.
*/
pthread_mutex_t lock;
* This is nested OUTSIDE consumer_relayd_sock_pair lock.
*/
pthread_mutex_t lock;
@@
-351,7
+356,7
@@
struct lttng_consumer_local_data {
/* to let the signal handler wake up the fd receiver thread */
int consumer_should_quit[2];
/* Metadata poll thread pipe. Transfer metadata stream to it */
/* to let the signal handler wake up the fd receiver thread */
int consumer_should_quit[2];
/* Metadata poll thread pipe. Transfer metadata stream to it */
-
int consumer_metadata_pipe[2]
;
+
struct lttng_pipe *consumer_metadata_pipe
;
};
/*
};
/*
@@
-457,7
+462,7
@@
struct lttng_consumer_stream *consumer_allocate_stream(uint64_t channel_key,
const char *channel_name,
uid_t uid,
gid_t gid,
const char *channel_name,
uid_t uid,
gid_t gid,
-
in
t relayd_id,
+
uint64_
t relayd_id,
uint64_t session_id,
int cpu,
int *alloc_ret,
uint64_t session_id,
int cpu,
int *alloc_ret,
@@
-468,7
+473,7
@@
struct lttng_consumer_channel *consumer_allocate_channel(uint64_t key,
const char *name,
uid_t uid,
gid_t gid,
const char *name,
uid_t uid,
gid_t gid,
-
in
t relayd_id,
+
uint64_
t relayd_id,
enum lttng_event_output output,
uint64_t tracefile_size,
uint64_t tracefile_count);
enum lttng_event_output output,
uint64_t tracefile_size,
uint64_t tracefile_count);
@@
-530,5
+535,6
@@
int consumer_send_status_channel(int sock,
struct lttng_consumer_channel *channel);
void notify_thread_del_channel(struct lttng_consumer_local_data *ctx,
uint64_t key);
struct lttng_consumer_channel *channel);
void notify_thread_del_channel(struct lttng_consumer_local_data *ctx,
uint64_t key);
+void consumer_destroy_relayd(struct consumer_relayd_sock_pair *relayd);
#endif /* LIB_CONSUMER_H */
#endif /* LIB_CONSUMER_H */
This page took
0.025487 seconds
and
5
git commands to generate.