2 * SPDX-License-Identifier: MIT
4 * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
7 #ifndef BABELTRACE_PLUGINS_UTILS_COUNTER_COUNTER_H
8 #define BABELTRACE_PLUGINS_UTILS_COUNTER_COUNTER_H
11 #include <babeltrace2/babeltrace.h>
14 #include "common/macros.h"
21 bt_message_iterator
*msg_iter
;
24 uint64_t stream_begin
;
26 uint64_t packet_begin
;
29 uint64_t disc_packets
;
30 uint64_t msg_iter_inactivity
;
33 uint64_t last_printed_total
;
37 bt_logging_level log_level
;
38 bt_self_component
*self_comp
;
41 bt_component_class_get_supported_mip_versions_method_status
42 counter_supported_mip_versions(bt_self_component_class_sink
*self_component_class
,
43 const bt_value
*params
, void *initialize_method_data
,
44 bt_logging_level logging_level
,
45 bt_integer_range_set_unsigned
*supported_versions
);
47 bt_component_class_initialize_method_status
counter_init(
48 bt_self_component_sink
*component
,
49 bt_self_component_sink_configuration
*config
,
50 const bt_value
*params
, void *init_method_data
);
52 void counter_finalize(bt_self_component_sink
*component
);
54 bt_component_class_sink_graph_is_configured_method_status
counter_graph_is_configured(
55 bt_self_component_sink
*component
);
57 bt_component_class_sink_consume_method_status
counter_consume(bt_self_component_sink
*component
);
63 #endif /* BABELTRACE_PLUGINS_UTILS_COUNTER_COUNTER_H */