Fix: sessiond: size-based notification occasionally not triggered
[lttng-tools.git] / src / bin / lttng-sessiond / rotation-thread.h
CommitLineData
db66e574 1/*
ab5be9fa
MJ
2 * Copyright (C) 2017 Julien Desfossez <jdesfossez@efficios.com>
3 * Copyright (C) 2018 Jérémie Galarneau <jeremie.galarneau@efficios.com>
db66e574 4 *
ab5be9fa 5 * SPDX-License-Identifier: GPL-2.0-only
db66e574 6 *
db66e574
JD
7 */
8
9#ifndef ROTATION_THREAD_H
10#define ROTATION_THREAD_H
11
12#include <urcu/list.h>
13#include <urcu.h>
14#include <urcu/rculfhash.h>
15#include <lttng/domain.h>
16#include <common/pipe.h>
17#include <common/compat/poll.h>
18#include <common/hashtable/hashtable.h>
19#include <pthread.h>
90936dcf 20#include <semaphore.h>
db66e574 21#include "session.h"
92816cc3 22#include "notification-thread.h"
db66e574 23
92816cc3 24extern struct lttng_notification_channel *rotate_notification_channel;
0331d3e5 25extern int rotate_notification_channel_subscription_change_eventfd;
90936dcf 26
92816cc3
JG
27enum rotation_thread_job_type {
28 ROTATION_THREAD_JOB_TYPE_SCHEDULED_ROTATION,
29 ROTATION_THREAD_JOB_TYPE_CHECK_PENDING_ROTATION
30};
90936dcf 31
92816cc3
JG
32struct rotation_thread_timer_queue;
33struct rotation_thread_handle;
90936dcf 34
92816cc3
JG
35struct rotation_thread_timer_queue *rotation_thread_timer_queue_create(void);
36void rotation_thread_timer_queue_destroy(
37 struct rotation_thread_timer_queue *queue);
db66e574
JD
38
39struct rotation_thread_handle *rotation_thread_handle_create(
90936dcf 40 struct rotation_thread_timer_queue *rotation_timer_queue,
c8a9de5a 41 struct notification_thread_handle *notification_thread_handle);
db66e574
JD
42
43void rotation_thread_handle_destroy(
44 struct rotation_thread_handle *handle);
45
92816cc3 46void rotation_thread_enqueue_job(struct rotation_thread_timer_queue *queue,
c7031a2c
JG
47 enum rotation_thread_job_type job_type,
48 struct ltt_session *session);
92816cc3 49
64d9b072 50bool launch_rotation_thread(struct rotation_thread_handle *handle);
db66e574
JD
51
52#endif /* ROTATION_THREAD_H */
This page took 0.046923 seconds and 4 git commands to generate.