Fix: rotation may never complete in per-PID buffering mode
[lttng-tools.git] / src / bin / lttng-sessiond / rotate.h
CommitLineData
db66e574
JD
1/*
2 * Copyright (C) 2017 - Julien Desfossez <jdesfossez@efficios.com>
92816cc3 3 * Copyright (C) 2018 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
db66e574
JD
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License, version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 51
16 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19#ifndef ROTATE_H
20#define ROTATE_H
21
22#include "rotation-thread.h"
92816cc3 23#include <stdint.h>
db66e574 24
92816cc3
JG
25int rotate_add_pending_rotation(struct ltt_session *session, uint64_t chunk_id);
26int rename_completed_chunk(struct ltt_session *session, time_t ts);
5c408ad8 27
90936dcf
JD
28/*
29 * Subscribe/unsubscribe the notification_channel from the rotation_thread to
30 * session usage notifications to perform size-based rotations.
31 */
32int subscribe_session_consumed_size_rotation(struct ltt_session *session,
33 uint64_t size,
34 struct notification_thread_handle *notification_thread_handle);
35int unsubscribe_session_consumed_size_rotation(struct ltt_session *session,
36 struct notification_thread_handle *notification_thread_handle);
37
db66e574 38#endif /* ROTATE_H */
This page took 0.025966 seconds and 4 git commands to generate.