X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=libust%2Ftracepoint.c;h=a006f700cc18af292d3061e622b6fb1a9ba46f3b;hb=4dac85d27a1f1b380c1aa95f75d8722398feee80;hp=2b45a88cd85c81f49c9e837e4676c22e0c65815d;hpb=edaa143197d094019217dafbe2b291c660d2cf12;p=lttng-ust.git diff --git a/libust/tracepoint.c b/libust/tracepoint.c index 2b45a88c..a006f700 100644 --- a/libust/tracepoint.c +++ b/libust/tracepoint.c @@ -31,14 +31,6 @@ #include -extern struct tracepoint * const __start___tracepoints_ptrs[] - __attribute__((visibility("hidden"))); -extern struct tracepoint * const __stop___tracepoints_ptrs[] - __attribute__((visibility("hidden"))); - -static struct tracepoint * __tracepoint_ptr_dummy - __attribute__((used, section("__tracepoints_ptrs"))); - /* Set to 1 to enable tracepoint debug output */ static const int tracepoint_debug; static int initialized; @@ -667,8 +659,8 @@ lib_added: /* TODO: update just the loaded lib */ lib_update_tracepoints(); - /* tracepoints_count - 1: skip dummy */ - DBG("just registered a tracepoints section from %p and having %d tracepoints (minus dummy tracepoints)", tracepoints_start, tracepoints_count); + DBG("just registered a tracepoints section from %p and having %d tracepoints", + tracepoints_start, tracepoints_count); return 0; } @@ -696,12 +688,8 @@ void init_tracepoint(void) if (uatomic_xchg(&initialized, 1) == 1) return; init_usterr(); - tracepoint_register_lib(__start___tracepoints_ptrs, - __stop___tracepoints_ptrs - - __start___tracepoints_ptrs); } void exit_tracepoint(void) { - tracepoint_unregister_lib(__start___tracepoints_ptrs); }