Commit | Line | Data |
---|---|---|
852c2936 | 1 | /* |
c0c0989a | 2 | * SPDX-License-Identifier: LGPL-2.1-only |
852c2936 | 3 | * |
e92f3e28 | 4 | * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
852c2936 MD |
5 | */ |
6 | ||
c0c0989a MJ |
7 | #ifndef _LTTNG_RING_BUFFER_NOHZ_H |
8 | #define _LTTNG_RING_BUFFER_NOHZ_H | |
9 | ||
852c2936 | 10 | #ifdef CONFIG_LIB_RING_BUFFER |
1d18d519 MJ |
11 | void lib_ring_buffer_tick_nohz_flush(void) |
12 | __attribute__((visibility("hidden"))); | |
ddabe860 | 13 | |
1d18d519 MJ |
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"))); | |
ddabe860 | 19 | |
852c2936 | 20 | #else |
1d18d519 | 21 | |
852c2936 MD |
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 | ||
e92f3e28 | 35 | #endif /* _LTTNG_RING_BUFFER_NOHZ_H */ |