fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / 04-c-tp-provider.c
1 /*
2 * Copyright (C) 2024 Kienan Stewart <kstewart@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7 static void fct_constructor4(void);
8 static void fct_destructor4(void);
9
10 void test_constructor4_same_unit_before(void) __attribute__((constructor));
11 void test_constructor4_same_unit_before(void)
12 {
13 fct_constructor4();
14 }
15
16 void test_destructor4_same_unit_before(void) __attribute__((destructor));
17 void test_destructor4_same_unit_before(void)
18 {
19 fct_destructor4();
20 }
21
22 #define TRACEPOINT_CREATE_PROBES
23 #include "tp.h"
24
25 static void fct_constructor4(void)
26 {
27 tracepoint(tp, constructor_c_same_unit_before_provider);
28 }
29
30 static void fct_destructor4(void)
31 {
32 tracepoint(tp, destructor_c_same_unit_before_provider);
33 }
34
35 void test_constructor4_same_unit_after(void) __attribute__((constructor));
36 void test_constructor4_same_unit_after(void)
37 {
38 tracepoint(tp, constructor_c_same_unit_after_provider);
39 }
40
41 void test_destructor4_same_unit_after(void) __attribute__((destructor));
42 void test_destructor4_same_unit_after(void)
43 {
44 tracepoint(tp, destructor_c_same_unit_after_provider);
45 }
This page took 0.030148 seconds and 4 git commands to generate.