X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer-timer.h;h=a9360027eb6dd83e325c458ad2f1f133ded99435;hb=584fc280d529740882a24c87a431e547b5acf8e0;hp=04743abf83a6d9625774953a08db931911df503e;hpb=2b8f875486548c9d54d62ae465e2fb23c7023d2c;p=lttng-tools.git diff --git a/src/common/consumer-timer.h b/src/common/consumer-timer.h index 04743abf8..a9360027e 100644 --- a/src/common/consumer-timer.h +++ b/src/common/consumer-timer.h @@ -26,6 +26,7 @@ #define LTTNG_CONSUMER_SIG_SWITCH SIGRTMIN + 10 #define LTTNG_CONSUMER_SIG_TEARDOWN SIGRTMIN + 11 +#define LTTNG_CONSUMER_SIG_LIVE SIGRTMIN + 12 #define CLOCKID CLOCK_MONOTONIC @@ -45,7 +46,16 @@ struct timer_signal_data { void consumer_timer_switch_start(struct lttng_consumer_channel *channel, unsigned int switch_timer_interval); void consumer_timer_switch_stop(struct lttng_consumer_channel *channel); -void *consumer_timer_metadata_thread(void *data); +void consumer_timer_live_start(struct lttng_consumer_channel *channel, + int live_timer_interval); +void consumer_timer_live_stop(struct lttng_consumer_channel *channel); +void *consumer_timer_thread(void *data); void consumer_signal_init(void); +int consumer_flush_kernel_index(struct lttng_consumer_stream *stream); +int consumer_flush_ust_index(struct lttng_consumer_stream *stream); + +int consumer_flush_kernel_index(struct lttng_consumer_stream *stream); +int consumer_flush_ust_index(struct lttng_consumer_stream *stream); + #endif /* CONSUMER_TIMER_H */