X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libust%2Fmarker.h;h=f07f1205b59dc5d2b81245ae12dbffaf84e4234f;hb=3158b808d3a8c45995ac7a40b022f9d569290b49;hp=5f375b872350443fa4142436a0f234e6c173787f;hpb=8fc2d8db78e961acc2ce7fb8f2acea5f58edf408;p=lttng-ust.git diff --git a/libust/marker.h b/libust/marker.h index 5f375b87..f07f1205 100644 --- a/libust/marker.h +++ b/libust/marker.h @@ -31,6 +31,7 @@ #include "kernelcompat.h" #include "compiler.h" #include +#include "localerr.h" //ust// struct module; //ust// struct task_struct; @@ -303,11 +304,11 @@ extern struct marker __stop___markers[] __attribute__((visibility("hidden"))); \ static void __attribute__((constructor)) __markers__init(void) \ { \ + DBG("next registration in "__FILE__"\n");\ marker_register_lib(__start___markers, (((long)__stop___markers)-((long)__start___markers))/sizeof(struct marker));\ } -void marker_set_new_marker_cb(void (*cb)(struct marker *)); - -void init_markers(void); +extern void marker_set_new_marker_cb(void (*cb)(struct marker *)); +extern void init_markers(void); #endif