X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-events-constructor%2Fmain.cpp;h=35240ac146d65375d00e3a106516f7327f57c650;hb=09a872ef0b4e1432329aa42fecc61f50e9baa367;hp=8f80fb092437a76c6ffe7e2004d92071f7561fd9;hpb=cebde614e5805e89341ba75d276b4d3e2da7225f;p=lttng-tools.git diff --git a/tests/utils/testapp/gen-ust-events-constructor/main.cpp b/tests/utils/testapp/gen-ust-events-constructor/main.cpp index 8f80fb092..35240ac14 100644 --- a/tests/utils/testapp/gen-ust-events-constructor/main.cpp +++ b/tests/utils/testapp/gen-ust-events-constructor/main.cpp @@ -5,10 +5,8 @@ */ #include "obj.h" -#include "tp-a.h" -#include "tp-a_c.h" -#include "tp-so_c.h" #include "tp-so.h" +#include "tp-so_c.h" #include "tp.h" /* Use tracepoints defined and provided by shared libraries. */ @@ -26,26 +24,10 @@ void test_destructor_so(void) Objso g_objso_shared_library("global - shared library define and provider"); -/* Use tracepoints defined and provided by static archive. */ -void test_constructor_a(void) __attribute__((constructor)); -void test_constructor_a(void) -{ - tracepoint(tp_a_c, constructor_c_provider_static_archive); -} - -void test_destructor_a(void) __attribute__((destructor)); -void test_destructor_a(void) -{ - tracepoint(tp_a_c, destructor_c_provider_static_archive); -} - -Obja g_obja_static_archive("global - static archive define and provider"); - int main(void) { Obj l_obj("main() local"); Objso l_objso("main() local - shared library define and provider"); - Obja l_obja("main() local - static archive define and provider"); tracepoint(tp, main); return 0;