X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Fhello%2Ftp.h;h=7fa16e904c835ac5145d4e8d4aed459e7786bb6a;hb=1dbfff0c0126804b07e9c11ba2307f65a95a650b;hp=ea401e11b29d9a4a440286edd50f3a1a6c4b50e1;hpb=93d0f2eaff675059588e958e3de74a1bb7dd4028;p=lttng-ust.git diff --git a/tests/hello/tp.h b/tests/hello/tp.h index ea401e11..7fa16e90 100644 --- a/tests/hello/tp.h +++ b/tests/hello/tp.h @@ -1,5 +1,45 @@ +#undef TRACEPOINT_SYSTEM +#define TRACEPOINT_SYSTEM tp + +#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) +#define _TRACEPOINT_TP_H + +/* + * Copyright (C) 2011 Mathieu Desnoyers + * + * 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. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + #include -DECLARE_TRACE(hello_tptest, - TPPROTO(int anint), - TPARGS(anint)); +TRACEPOINT_EVENT(ust_tests_hello_tptest, + TP_PROTO(int anint), + TP_ARGS(anint), + TP_FIELDS( + ctf_integer(int, intfield, anint) + )) + +TRACEPOINT_EVENT_NOARGS(ust_tests_hello_tptest_sighandler, + TP_FIELDS()) + +#endif /* _TRACEPOINT_TP_H */ + +#undef TRACEPOINT_INCLUDE_PATH +#define TRACEPOINT_INCLUDE_PATH . +#undef TRACEPOINT_INCLUDE_FILE +#define TRACEPOINT_INCLUDE_FILE tp + +/* This part must be outside protection */ +#include