Fix asprintf and scanf ignoring return value
[ust.git] / libust-initializer.c
index 7c474659e5702353a33e79126666bc979596a9a1..390218ee82c895185e5b33a5e0f6cbd164fa4566 100644 (file)
 #include <ust/marker.h>
 #include <ust/tracepoint.h>
 
+/* FIXME: We have to define at least one trace_mark and
+ * one tracepoint here. If we don't, the __start... and
+ * __stop... symbols won't be defined and the constructors
+ * won't be compilable. We should find a linker trick to
+ * avoid this.
+ */
+
+DECLARE_TRACE(ust_dummytp, TP_PROTO(int anint), TP_ARGS(anint));
+DEFINE_TRACE(ust_dummytp);
+
+void dummy_libust_initializer_func(void)
+{
+       int i;
+       trace_mark(ust, dummymark, MARK_NOARGS);
+       trace_ust_dummytp(i);
+}
+
 MARKER_LIB;
 TRACEPOINT_LIB;
This page took 0.023267 seconds and 4 git commands to generate.