Move all sources to 'src/'
[lttng-ust.git] / src / libringbuffer / nohz.h
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #ifndef _LTTNG_RING_BUFFER_NOHZ_H
8 #define _LTTNG_RING_BUFFER_NOHZ_H
9
10 #ifdef CONFIG_LIB_RING_BUFFER
11 void lib_ring_buffer_tick_nohz_flush(void)
12 __attribute__((visibility("hidden")));
13
14 void lib_ring_buffer_tick_nohz_stop(void)
15 __attribute__((visibility("hidden")));
16
17 void lib_ring_buffer_tick_nohz_restart(void)
18 __attribute__((visibility("hidden")));
19
20 #else
21
22 static inline void lib_ring_buffer_tick_nohz_flush(void)
23 {
24 }
25
26 static inline void lib_ring_buffer_tick_nohz_stop(void)
27 {
28 }
29
30 static inline void lib_ring_buffer_tick_nohz_restart(void)
31 {
32 }
33 #endif
34
35 #endif /* _LTTNG_RING_BUFFER_NOHZ_H */
This page took 0.030278 seconds and 4 git commands to generate.