2 * Copyright (C) 2023 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
9 static void fct_constructor4();
10 static void fct_destructor4();
12 void test_constructor4_same_unit_before() __attribute__((constructor
));
13 void test_constructor4_same_unit_before()
18 void test_destructor4_same_unit_before() __attribute__((destructor
));
19 void test_destructor4_same_unit_before()
24 Obj
g_obj_same_unit_before_provider("global - same unit before provider");
26 #define TRACEPOINT_CREATE_PROBES
29 Obj
g_obj_same_unit_after_provider("global - same unit after provider");
31 static void fct_constructor4()
33 tracepoint(tp
, constructor_c_same_unit_before_provider
);
36 static void fct_destructor4()
38 tracepoint(tp
, destructor_c_same_unit_before_provider
);
41 void test_constructor4_same_unit_after() __attribute__((constructor
));
42 void test_constructor4_same_unit_after()
44 tracepoint(tp
, constructor_c_same_unit_after_provider
);
47 void test_destructor4_same_unit_after() __attribute__((destructor
));
48 void test_destructor4_same_unit_after()
50 tracepoint(tp
, destructor_c_same_unit_after_provider
);