X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Fust%2Ftracepoint.h;h=908d5abd553378c0cb0ffa0292e49541f4596ae0;hb=27b052e353653e0e0e2ab72217bcbab5aff237c2;hp=56c62b0c6d3c884b1a6115cb4984eb9b17cb3de5;hpb=aa08b4413291fabcbd1b1144377d37034ad361de;p=ust.git diff --git a/include/ust/tracepoint.h b/include/ust/tracepoint.h index 56c62b0..908d5ab 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 @@ -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 */