tests: test_ust_constructor: Use a C-compiled shared object
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / main.cpp
index 8cb4f78985045b6e9b5370f4aa04ee50dc0082fe..8f80fb092437a76c6ffe7e2004d92071f7561fd9 100644 (file)
@@ -6,6 +6,8 @@
 
 #include "obj.h"
 #include "tp-a.h"
+#include "tp-a_c.h"
+#include "tp-so_c.h"
 #include "tp-so.h"
 #include "tp.h"
 
 void test_constructor_so(void) __attribute__((constructor));
 void test_constructor_so(void)
 {
-       tracepoint(tp_so, constructor_c_provider_shared_library);
+       tracepoint(tp_so_c, constructor_c_provider_shared_library);
 }
 
 void test_destructor_so(void) __attribute__((destructor));
 void test_destructor_so(void)
 {
-       tracepoint(tp_so, destructor_c_provider_shared_library);
+       tracepoint(tp_so_c, destructor_c_provider_shared_library);
 }
 
 Objso g_objso_shared_library("global - shared library define and provider");
@@ -28,13 +30,13 @@ Objso g_objso_shared_library("global - shared library define and provider");
 void test_constructor_a(void) __attribute__((constructor));
 void test_constructor_a(void)
 {
-       tracepoint(tp_a, constructor_c_provider_static_archive);
+       tracepoint(tp_a_c, constructor_c_provider_static_archive);
 }
 
 void test_destructor_a(void) __attribute__((destructor));
 void test_destructor_a(void)
 {
-       tracepoint(tp_a, destructor_c_provider_static_archive);
+       tracepoint(tp_a_c, destructor_c_provider_static_archive);
 }
 
 Obja g_obja_static_archive("global - static archive define and provider");
This page took 0.02491 seconds and 4 git commands to generate.