#include <string.h>
#include <unistd.h>
-#include <tap/tap.h>
-
#include <common/payload-view.hpp>
#include <common/payload.hpp>
#include <lttng/domain.h>
#include <lttng/userspace-probe.h>
#include "bin/lttng/loglevel.hpp"
+#include <tap/tap.h>
+
/* For error.h. */
int lttng_opt_quiet = 1;
int lttng_opt_verbose;
int lttng_opt_mi;
-#define NUM_TESTS 212
+#ifdef __linux__
+#define UPROBE_NUM_TESTS 9
+#else /* __linux__ */
+#define UPROBE_NUM_TESTS 0
+#endif /* __linux__ */
+
+#define NUM_TESTS (203 + UPROBE_NUM_TESTS)
+namespace {
struct tracepoint_test {
enum lttng_domain_type type;
bool support_name_pattern_exclusion;
};
+} /* namespace */
typedef const char *(*log_level_name_getter)(int log_level);
lttng_log_level_rule_destroy(log_level_rule);
}
+#ifdef __linux__
static void test_event_rule_userspace_probe(void)
{
struct lttng_event_rule *uprobe = NULL;
lttng_userspace_probe_location_destroy(probe_location);
lttng_userspace_probe_location_lookup_method_destroy(lookup_method);
}
+#else
+static void test_event_rule_userspace_probe(void) {}
+#endif
static void test_event_rule_kernel_probe_by_location(
const struct lttng_kernel_probe_location *location)