X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust-initializer.c;h=1bf709e3f5e7b16cc04519859f85c7bdf6c9548c;hb=d57c0d75a247da5dffd8b07a9717958f6cb76e64;hp=7c474659e5702353a33e79126666bc979596a9a1;hpb=ec96d08c68e986340f95b70ebe3aa359922abd9c;p=ust.git diff --git a/libust-initializer.c b/libust-initializer.c index 7c47465..1bf709e 100644 --- a/libust-initializer.c +++ b/libust-initializer.c @@ -11,5 +11,21 @@ #include #include +/* 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, TPPROTO(void), TPARGS()); +DEFINE_TRACE(ust_dummytp); + +void dummy_libust_initializer_func(void) +{ + trace_mark(ust, dummymark, MARK_NOARGS); + trace_ust_dummytp(); +} + MARKER_LIB; TRACEPOINT_LIB;