X-Git-Url: http://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-events-constructor%2Ftp-so_c.h;fp=tests%2Futils%2Ftestapp%2Fgen-ust-events-constructor%2Ftp-so_c.h;h=58d77cdcfa2b37db258de00f28c9f924366469fb;hp=0000000000000000000000000000000000000000;hb=ed1b6b66f5b5d319e86aa7522edbf7517c7ed25d;hpb=ab4919b5b443ac46269a5ba9f6bd00f0cbd9f35b diff --git a/tests/utils/testapp/gen-ust-events-constructor/tp-so_c.h b/tests/utils/testapp/gen-ust-events-constructor/tp-so_c.h new file mode 100644 index 000000000..58d77cdcf --- /dev/null +++ b/tests/utils/testapp/gen-ust-events-constructor/tp-so_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_so_c + +#if !defined(_TRACEPOINT_TP_SO_C_H) || defined(TRACEPOINT_HEADER_MULTI_READ) +#define _TRACEPOINT_TP_SO_C_H + +#include + +TRACEPOINT_EVENT(tp_so_c, constructor_c_provider_shared_library, TP_ARGS(), TP_FIELDS()) + +TRACEPOINT_EVENT(tp_so_c, destructor_c_provider_shared_library, TP_ARGS(), TP_FIELDS()) + +#endif /* _TRACEPOINT_TP_SO_C_H */ + +#undef TRACEPOINT_INCLUDE +#define TRACEPOINT_INCLUDE "./tp-so_c.h" + +/* This part must be outside ifdef protection */ +#include + +#ifdef _cplusplus +} +#endif