fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / main.cpp
1 /*
2 * Copyright (C) 2023 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7 #include "obj.h"
8 #include "tp-so.h"
9 #include "tp-so_c.h"
10 #include "tp.h"
11
12 /* Use tracepoints defined and provided by shared libraries. */
13 void test_constructor_so(void) __attribute__((constructor));
14 void test_constructor_so(void)
15 {
16 tracepoint(tp_so_c, constructor_c_provider_shared_library);
17 }
18
19 void test_destructor_so(void) __attribute__((destructor));
20 void test_destructor_so(void)
21 {
22 tracepoint(tp_so_c, destructor_c_provider_shared_library);
23 }
24
25 Objso g_objso_shared_library("global - shared library define and provider");
26
27 int main(void)
28 {
29 Obj l_obj("main() local");
30 Objso l_objso("main() local - shared library define and provider");
31
32 tracepoint(tp, main);
33 return 0;
34 }
This page took 0.029556 seconds and 4 git commands to generate.