X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Fprobes%2Flttng-test.c;h=86007e5e73d2cc66d28fdce600fdf49c4ad0a912;hb=4140ad5d31731fbfc179fbcf0221322cfeba6461;hp=ea27389372c9584ae7d50054ae7b29944e41d6a6;hpb=2df37e95fa4303ecc0db41334452665491533641;p=lttng-modules.git diff --git a/tests/probes/lttng-test.c b/tests/probes/lttng-test.c index ea273893..86007e5e 100644 --- a/tests/probes/lttng-test.c +++ b/tests/probes/lttng-test.c @@ -20,12 +20,17 @@ #define TP_MODULE_NOAUTOLOAD #define LTTNG_PACKAGE_BUILD #define CREATE_TRACE_POINTS -#define TRACE_INCLUDE_PATH instrumentation/events/lttng-module +#define TRACE_INCLUDE_PATH instrumentation/events #define TRACE_INCLUDE_FILE lttng-test #define LTTNG_INSTRUMENTATION -#include +#include -DEFINE_TRACE(lttng_test_filter_event); +LTTNG_DEFINE_TRACE(lttng_test_filter_event, + PARAMS(int anint, int netint, long *values, + char *text, size_t textlen, + char *etext, uint32_t * net_values), + PARAMS(anint, netint, values, text, textlen, etext, net_values) +); #define LTTNG_TEST_FILTER_EVENT_FILE "lttng-test-filter-event" @@ -81,7 +86,7 @@ end: return written; } -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,6,0)) static const struct proc_ops lttng_test_filter_event_proc_ops = { .proc_write = lttng_test_filter_event_write, };