Import CStringView from the Babeltrace tree
[lttng-tools.git] / tests / regression / ust / ust-dl / libfoo.c
index 0c918b1f0c91087ca70e476e22d7a4896bc4fb5b..908eb1f80891ebe828d010e43b6d25553c4c542e 100644 (file)
@@ -1,6 +1,20 @@
+/*
+ * Copyright (C) 2016 Antoine Busque <abusque@efficios.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-only
+ *
+ */
+
+#include "libbar.h"
 #include "libfoo.h"
 
-int foo()
+#define TRACEPOINT_DEFINE
+#define TRACEPOINT_PROBE_DYNAMIC_LINKAGE
+#include "libfoo-tp.h"
+
+int foo(void)
 {
+       tracepoint(libfoo, foo);
+       bar();
        return 1;
 }
This page took 0.024096 seconds and 4 git commands to generate.