clang-tidy: apply suggested fixes
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / 04-tp-provider.cpp
CommitLineData
a4cc1b1f
MD
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
07c4863f
JG
9static void fct_constructor4();
10static void fct_destructor4();
a4cc1b1f 11
07c4863f
JG
12void test_constructor4_same_unit_before() __attribute__((constructor));
13void test_constructor4_same_unit_before()
a4cc1b1f
MD
14{
15 fct_constructor4();
16}
17
07c4863f
JG
18void test_destructor4_same_unit_before() __attribute__((destructor));
19void test_destructor4_same_unit_before()
a4cc1b1f
MD
20{
21 fct_destructor4();
22}
23
24Obj g_obj_same_unit_before_provider("global - same unit before provider");
25
26#define TRACEPOINT_CREATE_PROBES
27#include "tp.h"
28
29Obj g_obj_same_unit_after_provider("global - same unit after provider");
30
07c4863f 31static void fct_constructor4()
a4cc1b1f
MD
32{
33 tracepoint(tp, constructor_c_same_unit_before_provider);
34}
35
07c4863f 36static void fct_destructor4()
a4cc1b1f
MD
37{
38 tracepoint(tp, destructor_c_same_unit_before_provider);
39}
40
07c4863f
JG
41void test_constructor4_same_unit_after() __attribute__((constructor));
42void test_constructor4_same_unit_after()
a4cc1b1f
MD
43{
44 tracepoint(tp, constructor_c_same_unit_after_provider);
45}
46
07c4863f
JG
47void test_destructor4_same_unit_after() __attribute__((destructor));
48void test_destructor4_same_unit_after()
a4cc1b1f
MD
49{
50 tracepoint(tp, destructor_c_same_unit_after_provider);
51}
This page took 0.042277 seconds and 4 git commands to generate.