X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-events-ns%2Ftp.h;fp=tests%2Futils%2Ftestapp%2Fgen-ust-events-ns%2Ftp.h;h=59b3f295b7d5b7bbd6b475b74bd3c82121c8fa40;hp=0000000000000000000000000000000000000000;hb=8a5583046c46a5b424a8997fc563e7924f0c8724;hpb=f62a387121da010bde3f50b1276cb7c1139321d1 diff --git a/tests/utils/testapp/gen-ust-events-ns/tp.h b/tests/utils/testapp/gen-ust-events-ns/tp.h new file mode 100644 index 000000000..59b3f295b --- /dev/null +++ b/tests/utils/testapp/gen-ust-events-ns/tp.h @@ -0,0 +1,35 @@ +#undef TRACEPOINT_PROVIDER +#define TRACEPOINT_PROVIDER tp + +#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) +#define _TRACEPOINT_TP_H + +/* + * Copyright (C) 2011 Mathieu Desnoyers + * + * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED + * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. + * + * Permission is hereby granted to use or copy this program + * for any purpose, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is granted, + * provided the above notices are retained, and a notice that the code was + * modified is included with the above copyright notice. + */ + +#include + +TRACEPOINT_EVENT(tp, tptest, + TP_ARGS(ino_t, ns_ino), + TP_FIELDS( + ctf_integer(ino_t, ns_ino, ns_ino) + ) +) + +#endif /* _TRACEPOINT_TP_H */ + +#undef TRACEPOINT_INCLUDE_FILE +#define TRACEPOINT_INCLUDE_FILE ./tp.h + +/* This part must be outside ifdef protection */ +#include