X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Fust%2Fust_trace.h;h=f2ccbe21e868fbbc579b871f3026f1a6a9283ff9;hb=f37142a4e245fd3d5d0014877c568f626dbfbbde;hp=66f1e878f355de9ab2651325ffdd73b5c3c92178;hpb=fc1caebc8a71283c7766549ebed47300d1b52945;p=ust.git diff --git a/include/ust/ust_trace.h b/include/ust/ust_trace.h index 66f1e87..f2ccbe2 100644 --- a/include/ust/ust_trace.h +++ b/include/ust/ust_trace.h @@ -4,8 +4,8 @@ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * License as published by the Free Software Foundation; + * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -32,12 +32,12 @@ #undef TRACE_EVENT #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ DECLARE_TRACE_EVENT_CLASS(name, \ - PARAMS(proto), \ - PARAMS(args), \ - PARAMS(tstruct), \ - PARAMS(assign), \ - PARAMS(print)); \ - DEFINE_TRACE_EVENT(name, name, PARAMS(proto), PARAMS(args)); + TP_PARAMS(proto), \ + TP_PARAMS(args), \ + TP_PARAMS(tstruct), \ + TP_PARAMS(assign), \ + TP_PARAMS(print)); \ + DEFINE_TRACE_EVENT(name, name, TP_PARAMS(proto), TP_PARAMS(args)); #undef __field #define __field(type, item) type item; @@ -70,11 +70,11 @@ } \ static inline int register_event_##name(void *data) \ { \ - return register_trace_##name(trace_printf_##name, data); \ + return register_tracepoint(name, trace_printf_##name, data); \ } \ static inline int unregister_event_##name(void *data) \ { \ - return unregister_trace_##name(trace_printf_##name, data); \ + return unregister_tracepoint(name, trace_printf_##name, data); \ } \ struct trace_event __event_##name = { \ __tpstrtab_##name, \ @@ -88,7 +88,7 @@ static void __attribute__((constructor)) init_##name() \ { \ void *dummy = NULL; \ - register_trace_##name(trace_printf_##name, dummy); \ + register_tracepoint(name, trace_printf_##name, dummy); \ }