#include <linux/cpumask.h>
#include <linux/types.h>
-#include <lttng-kernel-version.h>
-#include <lttng-cpuhotplug.h>
+#include <lttng/kernel-version.h>
+#include <lttng/cpuhotplug.h>
struct lib_ring_buffer_backend_page {
void *virt; /* page virtual address (cached) */
/*
* Forward declaration of frontend-specific channel and ring_buffer.
*/
-struct channel;
+struct lttng_kernel_ring_buffer_channel;
struct lib_ring_buffer;
struct lib_ring_buffer_backend {
struct lib_ring_buffer_backend_pages **array;
unsigned int num_pages_per_subbuf;
- struct channel *chan; /* Associated channel */
+ struct lttng_kernel_ring_buffer_channel *chan; /* Associated channel */
int cpu; /* This buffer's cpu. -1 if global. */
union v_atomic records_read; /* Number of records read */
unsigned int allocated:1; /* is buffer allocated ? */
void *priv; /* Client-specific information */
void *priv_ops; /* Client-specific ops pointer */
void (*release_priv_ops)(void *priv_ops);
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0))
struct lttng_cpuhp_node cpuhp_prepare; /* CPU hotplug prepare */
#else
struct notifier_block cpu_hp_notifier; /* CPU hotplug notifier */