Commit | Line | Data |
---|---|---|
f3bc2010 | 1 | /* |
0235b0db | 2 | * SPDX-License-Identifier: MIT |
f3bc2010 JG |
3 | * |
4 | * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
5 | * | |
0235b0db | 6 | * Babeltrace CTF Plug-in Registration Symbols |
f3bc2010 JG |
7 | */ |
8 | ||
3fadfbc0 | 9 | #include <babeltrace2/babeltrace.h> |
15fe47e0 | 10 | |
d8866baa | 11 | #include "fs-src/fs.h" |
15fe47e0 | 12 | #include "fs-sink/fs-sink.h" |
14f28187 | 13 | #include "lttng-live/lttng-live.h" |
f3bc2010 | 14 | |
52238017 MJ |
15 | #ifndef BT_BUILT_IN_PLUGINS |
16 | BT_PLUGIN_MODULE(); | |
17 | #endif | |
18 | ||
56a1cced | 19 | /* Initialize plug-in description. */ |
6ba0b073 | 20 | BT_PLUGIN(ctf); |
602d20a2 PP |
21 | BT_PLUGIN_DESCRIPTION("CTF input and output"); |
22 | BT_PLUGIN_AUTHOR("EfficiOS <https://www.efficios.com/>"); | |
f3bc2010 JG |
23 | BT_PLUGIN_LICENSE("MIT"); |
24 | ||
29a9ac94 | 25 | /* ctf.fs source */ |
41a2b7ae | 26 | BT_PLUGIN_SOURCE_COMPONENT_CLASS(fs, ctf_fs_iterator_next); |
d8866baa PP |
27 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_DESCRIPTION(fs, |
28 | "Read CTF traces from the file system."); | |
602d20a2 PP |
29 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_HELP(fs, |
30 | "See the babeltrace2-source.ctf.fs(7) manual page."); | |
21a9f056 | 31 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_INITIALIZE_METHOD(fs, ctf_fs_init); |
a67681c1 | 32 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_QUERY_METHOD(fs, ctf_fs_query); |
64cadc66 | 33 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_FINALIZE_METHOD(fs, ctf_fs_finalize); |
8e1fe2a4 | 34 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD(fs, |
d3eb6e8f | 35 | ctf_fs_iterator_init); |
8e1fe2a4 | 36 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_FINALIZE_METHOD(fs, |
64cadc66 | 37 | ctf_fs_iterator_finalize); |
8e1fe2a4 | 38 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHODS(fs, |
2e1b5615 | 39 | ctf_fs_iterator_seek_beginning, NULL); |
d3e4dcd8 | 40 | |
d8866baa | 41 | /* ctf.fs sink */ |
15fe47e0 | 42 | BT_PLUGIN_SINK_COMPONENT_CLASS(fs, ctf_fs_sink_consume); |
21a9f056 | 43 | BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(fs, ctf_fs_sink_init); |
15fe47e0 PP |
44 | BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(fs, ctf_fs_sink_finalize); |
45 | BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(fs, | |
46 | ctf_fs_sink_graph_is_configured); | |
602d20a2 PP |
47 | BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(fs, |
48 | "Write CTF traces to the file system."); | |
49 | BT_PLUGIN_SINK_COMPONENT_CLASS_HELP(fs, | |
50 | "See the babeltrace2-sink.ctf.fs(7) manual page."); | |
7cdc2bab MD |
51 | |
52 | /* ctf.lttng-live source */ | |
53 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_WITH_ID(auto, lttng_live, "lttng-live", | |
14f28187 | 54 | lttng_live_msg_iter_next); |
7cdc2bab | 55 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_DESCRIPTION_WITH_ID(auto, lttng_live, |
14f28187 | 56 | "Connect to an LTTng relay daemon and receive CTF streams."); |
602d20a2 PP |
57 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_HELP_WITH_ID(auto, lttng_live, |
58 | "See the babeltrace2-source.ctf.lttng-live(7) manual page."); | |
21a9f056 | 59 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_INITIALIZE_METHOD_WITH_ID(auto, lttng_live, |
7cdc2bab MD |
60 | lttng_live_component_init); |
61 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_QUERY_METHOD_WITH_ID(auto, lttng_live, | |
62 | lttng_live_query); | |
63 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_FINALIZE_METHOD_WITH_ID(auto, lttng_live, | |
64 | lttng_live_component_finalize); | |
8e1fe2a4 | 65 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD_WITH_ID(auto, |
14f28187 | 66 | lttng_live, lttng_live_msg_iter_init); |
8e1fe2a4 | 67 | BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_FINALIZE_METHOD_WITH_ID(auto, |
14f28187 | 68 | lttng_live, lttng_live_msg_iter_finalize); |