X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-nevents-str%2Ftp.h;fp=tests%2Futils%2Ftestapp%2Fgen-ust-nevents-str%2Ftp.h;h=9f9ab95b5b79a9c54a7187b3955f1f756482830e;hp=0000000000000000000000000000000000000000;hb=5400d18f909dbcf6cb8c794cdd33d0c2213fda18;hpb=dbfea1ab9883e8ee7b4addc43f2f25cda5fe9e6d diff --git a/tests/utils/testapp/gen-ust-nevents-str/tp.h b/tests/utils/testapp/gen-ust-nevents-str/tp.h new file mode 100644 index 000000000..9f9ab95b5 --- /dev/null +++ b/tests/utils/testapp/gen-ust-nevents-str/tp.h @@ -0,0 +1,45 @@ +#undef TRACEPOINT_PROVIDER +#define TRACEPOINT_PROVIDER tp + +#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) +#define _TRACEPOINT_TP_H + +/* + * Copyright (C) - 2017 Philippe Proulx + * + * 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; 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 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 + +TRACEPOINT_EVENT(tp, the_string, + TP_ARGS( + int, i, + int, arg_i, + const char *, str + ), + TP_FIELDS( + ctf_integer(int, i, i) + ctf_integer(long, arg_i, arg_i) + ctf_string(str, str) + ) +) + +#endif /* _TRACEPOINT_TP_H */ + +#undef TRACEPOINT_INCLUDE_FILE +#define TRACEPOINT_INCLUDE_FILE ./tp.h + +/* This part must be outside ifdef protection */ +#include