X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-statedump-impl.c;h=b7921df4a643a99b6790cdf887a2f05240201aa9;hb=refs%2Fheads%2Fstable-2.2;hp=0a0d1eb624e1b8f2e41f55141e57b955062211a1;hpb=3cac69f8bb23536a54739f939c48974fc34c6498;p=lttng-modules.git diff --git a/lttng-statedump-impl.c b/lttng-statedump-impl.c index 0a0d1eb6..b7921df4 100755 --- a/lttng-statedump-impl.c +++ b/lttng-statedump-impl.c @@ -50,6 +50,7 @@ #include "wrapper/irqdesc.h" #include "wrapper/spinlock.h" #include "wrapper/fdtable.h" +#include "wrapper/tracepoint.h" #ifdef CONFIG_GENERIC_HARDIRQS #include @@ -423,6 +424,28 @@ int lttng_statedump_start(struct lttng_session *session) } EXPORT_SYMBOL_GPL(lttng_statedump_start); +static +int __init lttng_statedump_init(void) +{ + /* + * Allow module to load even if the fixup cannot be done. This + * will allow seemless transition when the underlying issue fix + * is merged into the Linux kernel, and when tracepoint.c + * "tracepoint_module_notify" is turned into a static function. + */ + (void) wrapper_lttng_fixup_sig(THIS_MODULE); + return 0; +} + +module_init(lttng_statedump_init); + +static +void __exit lttng_statedump_exit(void) +{ +} + +module_exit(lttng_statedump_exit); + MODULE_LICENSE("GPL and additional rights"); MODULE_AUTHOR("Jean-Hugues Deschenes"); MODULE_DESCRIPTION("Linux Trace Toolkit Next Generation Statedump");