X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fprobes%2Flttng-test.c;h=d550398e4d7e6cf4ca71ad192deca77d0b8b6821;hb=2d0428212cbfa3f8428feee160b095f48c2ac974;hp=b450e7d77a5394d8514f92a87ad78a414a6b3ec5;hpb=ea53823c42a70a80566a340834e2b00e650406b9;p=lttng-modules.git diff --git a/tests/probes/lttng-test.c b/tests/probes/lttng-test.c index b450e7d7..d550398e 100644 --- a/tests/probes/lttng-test.c +++ b/tests/probes/lttng-test.c @@ -25,7 +25,12 @@ #define LTTNG_INSTRUMENTATION #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, };