Tests: Introduce gen-ust-events-constructor test application
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / obj.cpp
diff --git a/tests/utils/testapp/gen-ust-events-constructor/obj.cpp b/tests/utils/testapp/gen-ust-events-constructor/obj.cpp
new file mode 100644 (file)
index 0000000..9484201
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * SPDX-License-Identifier: MIT
+ *
+ */
+
+#include "obj.h"
+#include "tp-a.h"
+#include "tp-so.h"
+#include "tp.h"
+
+Obj::Obj(const char *_msg) : msg(_msg)
+{
+       tracepoint(tp, constructor_cplusplus, msg);
+}
+
+Obj::~Obj()
+{
+       tracepoint(tp, destructor_cplusplus, msg);
+}
+
+Objso::Objso(const char *_msg) : msg(_msg)
+{
+       tracepoint(tp_so, constructor_cplusplus_provider_shared_library, msg);
+}
+
+Objso::~Objso()
+{
+       tracepoint(tp_so, destructor_cplusplus_provider_shared_library, msg);
+}
+
+Obja::Obja(const char *_msg) : msg(_msg)
+{
+       tracepoint(tp_a, constructor_cplusplus_provider_static_archive, msg);
+}
+
+Obja::~Obja()
+{
+       tracepoint(tp_a, destructor_cplusplus_provider_static_archive, msg);
+}
This page took 0.02469 seconds and 4 git commands to generate.