#endif
{% if header_opts.identifier_prefix_definition %}
+/* Backward compatibility */
#define _BARECTF_PREFIX {{ prefix }}
+
+#define _BARECTF_IDENTIFIER_PREFIX {{ prefix }}
{% endif %}
{% if def_dst and header_opts.default_data_stream_type_name_definition %}
+/* Backward compatibility */
#define _BARECTF_DEFAULT_STREAM {{ def_dst.name }}
+
+#define _BARECTF_DEFAULT_DATA_STREAM_TYPE_NAME {{ def_dst.name }}
{% endif %}
{% if def_dst %}
int {{ prefix }}packet_is_full(const void *ctx);
int {{ prefix }}packet_is_empty(const void *ctx);
uint32_t {{ prefix }}packet_events_discarded(const void *ctx);
+uint32_t {{ prefix }}discarded_event_records_count(const void * const ctx);
uint8_t *{{ prefix }}packet_buf(const void *ctx);
+uint8_t *{{ prefix }}packet_buf_addr(const void * const ctx);
void {{ prefix }}packet_set_buf(void *ctx, uint8_t *buf, uint32_t buf_size);
uint32_t {{ prefix }}packet_buf_size(const void *ctx);
int {{ prefix }}packet_is_open(const void *ctx);
struct {{ prefix }}platform_callbacks {
{% set clk_types = trace_type.clock_types %}
{% if clk_types %}
- /* Clock callbacks */
+ /* Clock source callbacks */
{% for clk_type in clk_types | sort %}
{{ cg_opts.clock_type_c_types[clk_type] }} (*{{ clk_type.name }}_clock_get_value)(void *);
{% endfor %}
{% endif %}
- /* Is the back-end full? */
+ /* Is the back end full? */
int (*is_backend_full)(void *);
/* Open packet */
/* Tracing is enabled? */
volatile int is_tracing_enabled;
- /* Use current/last event record time when opening/closing packets */
+ /* Use current/last event record timestamp when opening/closing packets */
int use_cur_last_event_ts;
};