projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add empty plug-in hooks to prevent their elimination by the linker
[babeltrace.git]
/
formats
/
lttng-live
/
lttng-live-plugin.c
diff --git
a/formats/lttng-live/lttng-live-plugin.c
b/formats/lttng-live/lttng-live-plugin.c
index a1fbb9e826efc903009e777a70dc0fd7522004c4..dfabb986922341d1ea72bc004d190113a221c774 100644
(file)
--- a/
formats/lttng-live/lttng-live-plugin.c
+++ b/
formats/lttng-live/lttng-live-plugin.c
@@
-41,6
+41,14
@@
static volatile int should_quit;
+void bt_lttng_live_hook(void)
+{
+ /*
+ * Dummy function to prevent the linker from discarding this format as
+ * "unused" in static builds.
+ */
+}
+
int lttng_live_should_quit(void)
{
return should_quit;
This page took
0.025246 seconds
and
4
git commands to generate.