2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 #ifndef _LTTNG_RB_CLIENT_H
8 #define _LTTNG_RB_CLIENT_H
12 struct lttng_ust_client_lib_ring_buffer_client_cb
{
13 struct lttng_ust_lib_ring_buffer_client_cb parent
;
15 int (*timestamp_begin
) (struct lttng_ust_lib_ring_buffer
*buf
,
16 struct lttng_ust_shm_handle
*handle
,
17 uint64_t *timestamp_begin
);
18 int (*timestamp_end
) (struct lttng_ust_lib_ring_buffer
*buf
,
19 struct lttng_ust_shm_handle
*handle
,
20 uint64_t *timestamp_end
);
21 int (*events_discarded
) (struct lttng_ust_lib_ring_buffer
*buf
,
22 struct lttng_ust_shm_handle
*handle
,
23 uint64_t *events_discarded
);
24 int (*content_size
) (struct lttng_ust_lib_ring_buffer
*buf
,
25 struct lttng_ust_shm_handle
*handle
,
26 uint64_t *content_size
);
27 int (*packet_size
) (struct lttng_ust_lib_ring_buffer
*buf
,
28 struct lttng_ust_shm_handle
*handle
,
29 uint64_t *packet_size
);
30 int (*stream_id
) (struct lttng_ust_lib_ring_buffer
*buf
,
31 struct lttng_ust_shm_handle
*handle
,
33 int (*current_timestamp
) (struct lttng_ust_lib_ring_buffer
*buf
,
34 struct lttng_ust_shm_handle
*handle
,
36 int (*sequence_number
) (struct lttng_ust_lib_ring_buffer
*buf
,
37 struct lttng_ust_shm_handle
*handle
, uint64_t *seq
);
38 int (*instance_id
) (struct lttng_ust_lib_ring_buffer
*buf
,
39 struct lttng_ust_shm_handle
*handle
, uint64_t *id
);
42 #endif /* _LTTNG_RB_CLIENT_H */