#define WITH_UUID_PARAM_NAME "with-uuid"
#define COMPACT_PARAM_NAME "compact"
+bt_component_class_get_supported_mip_versions_method_status
+details_supported_mip_versions(
+ bt_self_component_class_sink *self_component_class __attribute__((unused)),
+ const bt_value *params __attribute__((unused)),
+ void *initialize_method_data __attribute__((unused)),
+ bt_logging_level logging_level __attribute__((unused)),
+ bt_integer_range_set_unsigned *supported_versions) {
+ return (int) bt_integer_range_set_unsigned_add_range(supported_versions, 0, 1);
+}
+
void details_destroy_details_trace_class_meta(
struct details_trace_class_meta *details_tc_meta)
{
GString *str;
};
+bt_component_class_get_supported_mip_versions_method_status
+details_supported_mip_versions(bt_self_component_class_sink *self_component_class,
+ const bt_value *params, void *initialize_method_data,
+ bt_logging_level logging_level,
+ bt_integer_range_set_unsigned *supported_versions);
+
bt_component_class_initialize_method_status details_init(
bt_self_component_sink *component,
bt_self_component_sink_configuration *config,
bt_clock_class *clock_class;
};
+bt_component_class_get_supported_mip_versions_method_status
+dmesg_supported_mip_versions(
+ bt_self_component_class_source *self_component_class __attribute__((unused)),
+ const bt_value *params __attribute__((unused)),
+ void *initialize_method_data __attribute__((unused)),
+ bt_logging_level logging_level __attribute__((unused)),
+ bt_integer_range_set_unsigned *supported_versions)
+{
+ return (int) bt_integer_range_set_unsigned_add_range(supported_versions, 0, 1);
+}
+
static
bt_field_class *create_event_payload_fc(struct dmesg_component *dmesg_comp,
bt_trace_class *trace_class)
#include "common/macros.h"
#include <babeltrace2/babeltrace.h>
+bt_component_class_get_supported_mip_versions_method_status
+dmesg_supported_mip_versions(bt_self_component_class_source *self_component_class,
+ const bt_value *params, void *initialize_method_data,
+ bt_logging_level logging_level,
+ bt_integer_range_set_unsigned *supported_versions);
+
bt_component_class_initialize_method_status dmesg_init(
bt_self_component_source *self_comp,
bt_self_component_source_configuration *config,
/* pretty sink */
BT_PLUGIN_SINK_COMPONENT_CLASS(pretty, pretty_consume);
+BT_PLUGIN_SINK_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD(pretty,
+ pretty_supported_mip_versions);
BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(pretty, pretty_init);
BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(pretty, pretty_finalize);
BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(pretty,
"Read Linux ring buffer lines (dmesg(1) output) from a file or from standard input.");
BT_PLUGIN_SOURCE_COMPONENT_CLASS_HELP(dmesg,
"See the babeltrace2-source.text.dmesg(7) manual page.");
+BT_PLUGIN_SOURCE_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD(dmesg,
+ dmesg_supported_mip_versions);
BT_PLUGIN_SOURCE_COMPONENT_CLASS_INITIALIZE_METHOD(dmesg, dmesg_init);
BT_PLUGIN_SOURCE_COMPONENT_CLASS_FINALIZE_METHOD(dmesg, dmesg_finalize);
BT_PLUGIN_SOURCE_COMPONENT_CLASS_MESSAGE_ITERATOR_CLASS_INITIALIZE_METHOD(dmesg,
/* details sink */
BT_PLUGIN_SINK_COMPONENT_CLASS(details, details_consume);
+BT_PLUGIN_SINK_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD(details,
+ details_supported_mip_versions);
BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(details, details_init);
BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(details, details_finalize);
BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(details,
static
const char * const in_port_name = "in";
+bt_component_class_get_supported_mip_versions_method_status
+pretty_supported_mip_versions(
+ bt_self_component_class_sink *self_component_class __attribute__((unused)),
+ const bt_value *params __attribute__((unused)),
+ void *initialize_method_data __attribute__((unused)),
+ bt_logging_level logging_level __attribute__((unused)),
+ bt_integer_range_set_unsigned *supported_versions)
+{
+ return (int) bt_integer_range_set_unsigned_add_range(supported_versions, 0, 1);
+}
+
static
void destroy_pretty_data(struct pretty_component *pretty)
{
bt_self_component *self_comp;
};
+bt_component_class_get_supported_mip_versions_method_status
+pretty_supported_mip_versions(bt_self_component_class_sink *self_component_class,
+ const bt_value *params, void *initialize_method_data,
+ bt_logging_level logging_level,
+ bt_integer_range_set_unsigned *supported_versions);
+
bt_component_class_initialize_method_status pretty_init(
bt_self_component_sink *component,
bt_self_component_sink_configuration *config,
static
const char * const in_port_name = "in";
+bt_component_class_get_supported_mip_versions_method_status
+counter_supported_mip_versions(
+ bt_self_component_class_sink *self_component_class __attribute__((unused)),
+ const bt_value *params __attribute__((unused)),
+ void *initialize_method_data __attribute__((unused)),
+ bt_logging_level logging_level __attribute__((unused)),
+ bt_integer_range_set_unsigned *supported_versions) {
+ return (int) bt_integer_range_set_unsigned_add_range(supported_versions, 0, 1);
+}
+
static
uint64_t get_total_count(struct counter *counter)
{
bt_self_component *self_comp;
};
+bt_component_class_get_supported_mip_versions_method_status
+counter_supported_mip_versions(bt_self_component_class_sink *self_component_class,
+ const bt_value *params, void *initialize_method_data,
+ bt_logging_level logging_level,
+ bt_integer_range_set_unsigned *supported_versions);
+
bt_component_class_initialize_method_status counter_init(
bt_self_component_sink *component,
bt_self_component_sink_configuration *config,
static
const char * const in_port_name = "in";
+bt_component_class_get_supported_mip_versions_method_status
+dummy_supported_mip_versions(
+ bt_self_component_class_sink *self_component_class __attribute__((unused)),
+ const bt_value *params __attribute__((unused)),
+ void *initialize_method_data __attribute__((unused)),
+ bt_logging_level logging_level __attribute__((unused)),
+ bt_integer_range_set_unsigned *supported_versions) {
+ return (int) bt_integer_range_set_unsigned_add_range(supported_versions, 0, 1);
+}
+
static
void destroy_private_dummy_data(struct dummy *dummy)
{
bt_message_iterator *msg_iter;
};
+bt_component_class_get_supported_mip_versions_method_status
+dummy_supported_mip_versions(bt_self_component_class_sink *self_component_class,
+ const bt_value *params, void *initialize_method_data,
+ bt_logging_level logging_level,
+ bt_integer_range_set_unsigned *supported_versions);
+
bt_component_class_initialize_method_status dummy_init(
bt_self_component_sink *component,
bt_self_component_sink_configuration *config,
BT_CPPLOGI("Initialized component.");
}
+void Comp::_getSupportedMipVersions(bt2::SelfComponentClass, bt2::ConstValue, bt2::LoggingLevel,
+ const bt2::UnsignedIntegerRangeSet ranges)
+{
+ ranges.addRange(0, 1);
+}
+
void Comp::_inputPortConnected(const bt2::SelfComponentInputPort, const bt2::ConstOutputPort)
{
this->_addAvailInputPort();
public:
explicit Comp(bt2::SelfFilterComponent selfComp, bt2::ConstMapValue params, void *);
+protected:
+ static void _getSupportedMipVersions(bt2::SelfComponentClass, bt2::ConstValue,
+ bt2::LoggingLevel, bt2::UnsignedIntegerRangeSet ranges);
+
private:
void _inputPortConnected(bt2::SelfComponentInputPort selfPort, bt2::ConstOutputPort otherPort);
void _addAvailInputPort();
/* sink.utils.dummy */
BT_PLUGIN_SINK_COMPONENT_CLASS(dummy, dummy_consume);
+BT_PLUGIN_SINK_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD(dummy,
+ dummy_supported_mip_versions);
BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(dummy, dummy_init);
BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(dummy, dummy_finalize);
BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(dummy, dummy_graph_is_configured);
/* sink.utils.counter */
BT_PLUGIN_SINK_COMPONENT_CLASS(counter, counter_consume);
+BT_PLUGIN_SINK_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD(counter,
+ counter_supported_mip_versions);
BT_PLUGIN_SINK_COMPONENT_CLASS_INITIALIZE_METHOD(counter, counter_init);
BT_PLUGIN_SINK_COMPONENT_CLASS_FINALIZE_METHOD(counter, counter_finalize);
BT_PLUGIN_SINK_COMPONENT_CLASS_GRAPH_IS_CONFIGURED_METHOD(counter, counter_graph_is_configured);
/* flt.utils.trimmer */
BT_PLUGIN_FILTER_COMPONENT_CLASS(trimmer, trimmer_msg_iter_next);
+BT_PLUGIN_FILTER_COMPONENT_CLASS_GET_SUPPORTED_MIP_VERSIONS_METHOD(trimmer,
+ trimmer_supported_mip_versions);
BT_PLUGIN_FILTER_COMPONENT_CLASS_DESCRIPTION(
trimmer, "Discard messages that occur outside a specific time range.");
BT_PLUGIN_FILTER_COMPONENT_CLASS_HELP(trimmer,
const bt_packet *cur_packet;
};
+bt_component_class_get_supported_mip_versions_method_status
+trimmer_supported_mip_versions(
+ bt_self_component_class_filter *self_component_class __attribute__((unused)),
+ const bt_value *params __attribute__((unused)),
+ void *initialize_method_data __attribute__((unused)),
+ bt_logging_level logging_level __attribute__((unused)),
+ bt_integer_range_set_unsigned *supported_versions)
+{
+ return (int) bt_integer_range_set_unsigned_add_range(supported_versions, 0, 1);
+}
+
static
void destroy_trimmer_comp(struct trimmer_comp *trimmer_comp)
{
extern "C" {
#endif
+bt_component_class_get_supported_mip_versions_method_status
+trimmer_supported_mip_versions(
+ bt_self_component_class_filter *self_component_class,
+ const bt_value *params, void *initialize_method_data,
+ bt_logging_level logging_level,
+ bt_integer_range_set_unsigned *supported_versions);
+
void trimmer_finalize(bt_self_component_filter *self_comp);
bt_component_class_initialize_method_status trimmer_init(