#include <unistd.h>
#include <stdbool.h>
#include <lttng/constant.h>
+#include <lttng/lttng-export.h>
#include <fcntl.h>
#include <dlfcn.h>
-#include <assert.h>
#include <stdio.h>
static char *pause_pipe_path;
* thread to create a named pipe/FIFO which a test application can use to either
* pause or resume the consumption of data.
*/
-int __testpoint_consumerd_thread_data(void);
+LTTNG_EXPORT int __testpoint_consumerd_thread_data(void);
int __testpoint_consumerd_thread_data(void)
{
int ret = 0;
* when launching the session daemon.
*/
data_consumption_state = dlsym(NULL, "data_consumption_paused");
- assert(data_consumption_state);
+ LTTNG_ASSERT(data_consumption_state);
lttng_consumer_get_type = dlsym(NULL, "lttng_consumer_get_type");
- assert(lttng_consumer_get_type);
+ LTTNG_ASSERT(lttng_consumer_get_type);
switch (lttng_consumer_get_type()) {
case LTTNG_CONSUMER_KERNEL:
return ret;
}
-int __testpoint_consumerd_thread_data_poll(void);
+LTTNG_EXPORT int __testpoint_consumerd_thread_data_poll(void);
int __testpoint_consumerd_thread_data_poll(void)
{
int ret = 0;