Move to kernel style SPDX license identifiers
[babeltrace.git] / src / plugins / utils / plugin.c
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
5 */
6
7 #include <babeltrace2/babeltrace.h>
8 #include "dummy/dummy.h"
9 #include "counter/counter.h"
10 #include "muxer/muxer.h"
11 #include "trimmer/trimmer.h"
12
13 #ifndef BT_BUILT_IN_PLUGINS
14 BT_PLUGIN_MODULE();
15 #endif
16
17 BT_PLUGIN(utils);
18 BT_PLUGIN_DESCRIPTION("Common graph utilities");
19 BT_PLUGIN_AUTHOR("EfficiOS <https://www.efficios.com/>");
20 BT_PLUGIN_LICENSE("MIT");
21
22 /* sink.utils.dummy */
23 BT_PLUGIN_SINK_COMPONENT_CLASS(dummy, dummy_consume);
24 BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(dummy, dummy_init);
25 BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(dummy, dummy_finalize);
26 BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(dummy,
27 dummy_graph_is_configured);
28 BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(dummy,
29 "Consume messages and discard them.");
30 BT_PLUGIN_SINK_COMPONENT_CLASS_HELP(dummy,
31 "See the babeltrace2-sink.utils.dummy(7) manual page.");
32
33 /* sink.utils.counter */
34 BT_PLUGIN_SINK_COMPONENT_CLASS(counter, counter_consume);
35 BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(counter, counter_init);
36 BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(counter, counter_finalize);
37 BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(counter,
38 counter_graph_is_configured);
39 BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(counter,
40 "Count messages and print the statistics.");
41 BT_PLUGIN_SINK_COMPONENT_CLASS_HELP(counter,
42 "See the babeltrace2-sink.utils.counter(7) manual page.");
43
44 /* flt.utils.trimmer */
45 BT_PLUGIN_FILTER_COMPONENT_CLASS(trimmer, trimmer_msg_iter_next);
46 BT_PLUGIN_FILTER_COMPONENT_CLASS_DESCRIPTION(trimmer,
47 "Discard messages that occur outside a specific time range.");
48 BT_PLUGIN_FILTER_COMPONENT_CLASS_HELP(trimmer,
49 "See the babeltrace2-filter.utils.trimmer(7) manual page.");
50 BT_PLUGIN_FILTER_COMPONENT_CLASS_INITIALIZE_METHOD(trimmer, trimmer_init);
51 BT_PLUGIN_FILTER_COMPONENT_CLASS_FINALIZE_METHOD(trimmer, trimmer_finalize);
52 BT_PLUGIN_FILTER_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD(trimmer,
53 trimmer_msg_iter_init);
54 BT_PLUGIN_FILTER_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_FINALIZE_METHOD(trimmer,
55 trimmer_msg_iter_finalize);
56
57 /* flt.utils.muxer */
58 BT_PLUGIN_FILTER_COMPONENT_CLASS(muxer, muxer_msg_iter_next);
59 BT_PLUGIN_FILTER_COMPONENT_CLASS_DESCRIPTION(muxer,
60 "Sort messages from multiple input ports to a single output port by time.");
61 BT_PLUGIN_FILTER_COMPONENT_CLASS_HELP(muxer,
62 "See the babeltrace2-filter.utils.muxer(7) manual page.");
63 BT_PLUGIN_FILTER_COMPONENT_CLASS_INITIALIZE_METHOD(muxer, muxer_init);
64 BT_PLUGIN_FILTER_COMPONENT_CLASS_FINALIZE_METHOD(muxer, muxer_finalize);
65 BT_PLUGIN_FILTER_COMPONENT_CLASS_INPUT_PORT_CONNECTED_METHOD(muxer,
66 muxer_input_port_connected);
67 BT_PLUGIN_FILTER_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD(muxer,
68 muxer_msg_iter_init);
69 BT_PLUGIN_FILTER_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_FINALIZE_METHOD(muxer,
70 muxer_msg_iter_finalize);
71 BT_PLUGIN_FILTER_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHODS(muxer,
72 muxer_msg_iter_seek_beginning, muxer_msg_iter_can_seek_beginning);
This page took 0.0304720000000001 seconds and 4 git commands to generate.