2 * Copyright (C) 2023 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
9 static void fct_constructor4(void);
10 static void fct_destructor4(void);
12 void test_constructor4_same_unit_before(void) __attribute__((constructor
));
13 void test_constructor4_same_unit_before(void)
18 void test_destructor4_same_unit_before(void) __attribute__((destructor
));
19 void test_destructor4_same_unit_before(void)
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(void)
33 tracepoint(tp
, constructor_c_same_unit_before_provider
);
36 static void fct_destructor4(void)
38 tracepoint(tp
, destructor_c_same_unit_before_provider
);
41 void test_constructor4_same_unit_after(void) __attribute__((constructor
));
42 void test_constructor4_same_unit_after(void)
44 tracepoint(tp
, constructor_c_same_unit_after_provider
);
47 void test_destructor4_same_unit_after(void) __attribute__((destructor
));
48 void test_destructor4_same_unit_after(void)
50 tracepoint(tp
, destructor_c_same_unit_after_provider
);