2 * SPDX-License-Identifier: MIT
4 * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
7 #ifndef BABELTRACE_PLUGINS_UTILS_COUNTER_H
8 #define BABELTRACE_PLUGINS_UTILS_COUNTER_H
11 #include <babeltrace2/babeltrace.h>
14 #include "common/macros.h"
17 bt_message_iterator
*msg_iter
;
20 uint64_t stream_begin
;
22 uint64_t packet_begin
;
25 uint64_t disc_packets
;
26 uint64_t msg_iter_inactivity
;
29 uint64_t last_printed_total
;
33 bt_logging_level log_level
;
34 bt_self_component
*self_comp
;
38 bt_component_class_initialize_method_status
counter_init(
39 bt_self_component_sink
*component
,
40 bt_self_component_sink_configuration
*config
,
41 const bt_value
*params
, void *init_method_data
);
44 void counter_finalize(bt_self_component_sink
*component
);
47 bt_component_class_sink_graph_is_configured_method_status
counter_graph_is_configured(
48 bt_self_component_sink
*component
);
51 bt_component_class_sink_consume_method_status
counter_consume(bt_self_component_sink
*component
);
53 #endif /* BABELTRACE_PLUGINS_UTILS_COUNTER_H */