Tests: Introduce gen-ust-events-constructor test application
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / obj.cpp
CommitLineData
a4cc1b1f
MD
1/*
2 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8#include "obj.h"
9#include "tp-a.h"
10#include "tp-so.h"
11#include "tp.h"
12
13Obj::Obj(const char *_msg) : msg(_msg)
14{
15 tracepoint(tp, constructor_cplusplus, msg);
16}
17
18Obj::~Obj()
19{
20 tracepoint(tp, destructor_cplusplus, msg);
21}
22
23Objso::Objso(const char *_msg) : msg(_msg)
24{
25 tracepoint(tp_so, constructor_cplusplus_provider_shared_library, msg);
26}
27
28Objso::~Objso()
29{
30 tracepoint(tp_so, destructor_cplusplus_provider_shared_library, msg);
31}
32
33Obja::Obja(const char *_msg) : msg(_msg)
34{
35 tracepoint(tp_a, constructor_cplusplus_provider_static_archive, msg);
36}
37
38Obja::~Obja()
39{
40 tracepoint(tp_a, destructor_cplusplus_provider_static_archive, msg);
41}
This page took 0.024957 seconds and 4 git commands to generate.