| 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-so.h" |
| 10 | #include "tp.h" |
| 11 | |
| 12 | Obj::Obj(const char *_msg) : msg(_msg) |
| 13 | { |
| 14 | tracepoint(tp, constructor_cplusplus, msg); |
| 15 | } |
| 16 | |
| 17 | Obj::~Obj() |
| 18 | { |
| 19 | tracepoint(tp, destructor_cplusplus, msg); |
| 20 | } |
| 21 | |
| 22 | Objso::Objso(const char *_msg) : msg(_msg) |
| 23 | { |
| 24 | tracepoint(tp_so, constructor_cplusplus_provider_shared_library, msg); |
| 25 | } |
| 26 | |
| 27 | Objso::~Objso() |
| 28 | { |
| 29 | tracepoint(tp_so, destructor_cplusplus_provider_shared_library, msg); |
| 30 | } |