2 * SPDX-License-Identifier: MIT
4 * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
7 #include <babeltrace2/babeltrace.h>
8 #include "pretty/pretty.h"
9 #include "dmesg/dmesg.h"
10 #include "details/details.h"
12 #ifndef BT_BUILT_IN_PLUGINS
17 BT_PLUGIN_DESCRIPTION("Plain text input and output");
18 BT_PLUGIN_AUTHOR("EfficiOS <https://www.efficios.com/>");
19 BT_PLUGIN_LICENSE("MIT");
22 BT_PLUGIN_SINK_COMPONENT_CLASS(pretty
, pretty_consume
);
23 BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(pretty
, pretty_init
);
24 BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(pretty
, pretty_finalize
);
25 BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(pretty
,
26 pretty_graph_is_configured
);
27 BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(pretty
,
28 "Pretty-print messages (`text` format of Babeltrace 1).");
29 BT_PLUGIN_SINK_COMPONENT_CLASS_HELP(pretty
,
30 "See the babeltrace2-sink.text.pretty(7) manual page.");
33 BT_PLUGIN_SOURCE_COMPONENT_CLASS(dmesg
, dmesg_msg_iter_next
);
34 BT_PLUGIN_SOURCE_COMPONENT_CLASS_DESCRIPTION(dmesg
,
35 "Read Linux ring buffer lines (dmesg(1) output) from a file or from standard input.");
36 BT_PLUGIN_SOURCE_COMPONENT_CLASS_HELP(dmesg
,
37 "See the babeltrace2-source.text.dmesg(7) manual page.");
38 BT_PLUGIN_SOURCE_COMPONENT_CLASS_INITIALIZE_METHOD(dmesg
, dmesg_init
);
39 BT_PLUGIN_SOURCE_COMPONENT_CLASS_FINALIZE_METHOD(dmesg
, dmesg_finalize
);
40 BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD(dmesg
,
42 BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_FINALIZE_METHOD(dmesg
,
43 dmesg_msg_iter_finalize
);
44 BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_SEEK_BEGINNING_METHODS(dmesg
,
45 dmesg_msg_iter_seek_beginning
, dmesg_msg_iter_can_seek_beginning
);
48 BT_PLUGIN_SINK_COMPONENT_CLASS(details
, details_consume
);
49 BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(details
, details_init
);
50 BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(details
, details_finalize
);
51 BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(details
,
52 details_graph_is_configured
);
53 BT_PLUGIN_SINK_COMPONENT_CLASS_DESCRIPTION(details
,
54 "Print messages with details.");
55 BT_PLUGIN_SINK_COMPONENT_CLASS_HELP(details
,
56 "See the babeltrace2-sink.text.details(7) manual page.");