X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Fust%2Ftracepoint.h;h=908d5abd553378c0cb0ffa0292e49541f4596ae0;hb=6793a8bf419a5b2138161098617c52ad4b804d05;hp=7cfdbb01adbd4882a25165a9292170d63f0ba4df;hpb=93d0f2eaff675059588e958e3de74a1bb7dd4028;p=lttng-ust.git diff --git a/include/ust/tracepoint.h b/include/ust/tracepoint.h index 7cfdbb01..908d5abd 100644 --- a/include/ust/tracepoint.h +++ b/include/ust/tracepoint.h @@ -1,5 +1,5 @@ -#ifndef _LINUX_TRACEPOINT_H -#define _LINUX_TRACEPOINT_H +#ifndef _UST_TRACEPOINT_H +#define _UST_TRACEPOINT_H /* * Copyright (C) 2008 Mathieu Desnoyers @@ -32,7 +32,7 @@ #include #include -#include "kernelcompat.h" +#include struct module; struct tracepoint; @@ -202,12 +202,12 @@ extern int tracepoint_register_lib(struct tracepoint *tracepoints_start, int tracepoints_count); #define TRACEPOINT_LIB \ - extern struct tracepoint __start___tracepoints[] __attribute__((visibility("hidden"))); \ - extern struct tracepoint __stop___tracepoints[] __attribute__((visibility("hidden"))); \ + extern struct tracepoint __start___tracepoints[] __attribute__((weak, visibility("hidden"))); \ + extern struct tracepoint __stop___tracepoints[] __attribute__((weak, visibility("hidden"))); \ static void __attribute__((constructor)) __tracepoints__init(void) \ { \ tracepoint_register_lib(__start___tracepoints, \ (((long)__stop___tracepoints)-((long)__start___tracepoints))/sizeof(struct tracepoint)); \ } -#endif +#endif /* _UST_TRACEPOINT_H */