X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Futils%2Ftestapp%2Fgen-ust-events-constructor%2Ftp-so.h;fp=tests%2Futils%2Ftestapp%2Fgen-ust-events-constructor%2Ftp-so.h;h=0bdc3ed2feb2f4b9da66e0dd11a7521c375bb8f8;hb=a4cc1b1ff4fc661a3980bbe2ceba789acf05dfce;hp=0000000000000000000000000000000000000000;hpb=4dfb0ef75c09bbf166e2bd6388e0e07c6af49b20;p=lttng-tools.git diff --git a/tests/utils/testapp/gen-ust-events-constructor/tp-so.h b/tests/utils/testapp/gen-ust-events-constructor/tp-so.h new file mode 100644 index 000000000..0bdc3ed2f --- /dev/null +++ b/tests/utils/testapp/gen-ust-events-constructor/tp-so.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2011 Mathieu Desnoyers + * + * SPDX-License-Identifier: MIT + * + */ + +#undef TRACEPOINT_PROVIDER +#define TRACEPOINT_PROVIDER tp_so + +#if !defined(_TRACEPOINT_TP_SO_H) || defined(TRACEPOINT_HEADER_MULTI_READ) +#define _TRACEPOINT_TP_SO_H + +#include + +#include + +TRACEPOINT_EVENT(tp_so, constructor_c_provider_shared_library, TP_ARGS(), TP_FIELDS()) + +TRACEPOINT_EVENT(tp_so, destructor_c_provider_shared_library, TP_ARGS(), TP_FIELDS()) + +TRACEPOINT_EVENT(tp_so, + constructor_cplusplus_provider_shared_library, + TP_ARGS(const char *, msg), + TP_FIELDS(ctf_string(msg, msg))) + +TRACEPOINT_EVENT(tp_so, + destructor_cplusplus_provider_shared_library, + TP_ARGS(const char *, msg), + TP_FIELDS(ctf_string(msg, msg))) + +#endif /* _TRACEPOINT_TP_SO_H */ + +#undef TRACEPOINT_INCLUDE +#define TRACEPOINT_INCLUDE "./tp-so.h" + +/* This part must be outside ifdef protection */ +#include