X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-events-constructor%2Ftp-a_c.h;fp=tests%2Futils%2Ftestapp%2Fgen-ust-events-constructor%2Ftp-a_c.h;h=f2ab443dd3d4ec5cd67fa2d91680eb2bf1ccafc2;hp=0000000000000000000000000000000000000000;hb=ab4919b5b443ac46269a5ba9f6bd00f0cbd9f35b;hpb=b8e79f3f1057ff91224991f76b3837202bde5a06 diff --git a/tests/utils/testapp/gen-ust-events-constructor/tp-a_c.h b/tests/utils/testapp/gen-ust-events-constructor/tp-a_c.h new file mode 100644 index 000000000..f2ab443dd --- /dev/null +++ b/tests/utils/testapp/gen-ust-events-constructor/tp-a_c.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Kienan Stewart + * + * SPDX-License-Identifier: LGPL-2.1-only + */ + +#ifdef __cplusplus +extern "C" { +#endif + +#undef TRACEPOINT_PROVIDER +#define TRACEPOINT_PROVIDER tp_a_c + +#if !defined(_TRACEPOINT_TP_A_C_H) || defined(TRACEPOINT_HEADER_MULTI_READ) +#define _TRACEPOINT_TP_A_C_H + +#include + +TRACEPOINT_EVENT(tp_a_c, constructor_c_provider_static_archive, TP_ARGS(), TP_FIELDS()) + +TRACEPOINT_EVENT(tp_a_c, destructor_c_provider_static_archive, TP_ARGS(), TP_FIELDS()) + +#endif /* _TRACEPOINT_TP_A_H */ + +#undef TRACEPOINT_INCLUDE +#define TRACEPOINT_INCLUDE "./tp-a_c.h" + +/* This part must be outside ifdef protection */ +#include + +#ifdef __cplusplus +} +#endif