#include <lttng/domain.h>
#include <lttng/event.h>
+#include <stdint.h>
#ifdef __cplusplus
extern "C" {
uint64_t tracefile_count; /* number of tracefiles */
/* LTTng 2.3 padding limit */
unsigned int live_timer_interval; /* usec */
+ /* LTTng 2.7 padding limit */
+ uint32_t align_to_64;
+ union {
+ uint64_t padding;
+ void *ptr;
+ } extended;
char padding[LTTNG_CHANNEL_ATTR_PADDING1];
};
extern void lttng_channel_set_default_attr(struct lttng_domain *domain,
struct lttng_channel_attr *attr);
+/*
+ * Get the discarded event count of a specific LTTng channel.
+ *
+ * Returns 0 on success, or a negative LTTng error code on error.
+ */
+extern int lttng_channel_get_discarded_event_count(struct lttng_channel *chan,
+ uint64_t *discarded_events);
+
+/*
+ * Get the lost packet count of a specific LTTng channel.
+ *
+ * Returns 0 on success, or a negative LTTng error code on error.
+ */
+extern int lttng_channel_get_lost_packet_count(struct lttng_channel *chan,
+ uint64_t *lost_packets);
+
#ifdef __cplusplus
}
#endif