Commit | Line | Data |
---|---|---|
82b9bde8 | 1 | /* |
c0c0989a | 2 | * SPDX-License-Identifier: LGPL-2.1-only |
82b9bde8 | 3 | * |
c0c0989a | 4 | * Copyright (C) 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
82b9bde8 JD |
5 | */ |
6 | ||
c0c0989a MJ |
7 | #ifndef _LTTNG_RB_CLIENT_H |
8 | #define _LTTNG_RB_CLIENT_H | |
9 | ||
fb31eb73 FD |
10 | #include <stdint.h> |
11 | ||
82b9bde8 JD |
12 | struct lttng_ust_client_lib_ring_buffer_client_cb { |
13 | struct lttng_ust_lib_ring_buffer_client_cb parent; | |
b2f3252a JD |
14 | |
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, | |
32 | uint64_t *stream_id); | |
fca361e8 JD |
33 | int (*current_timestamp) (struct lttng_ust_lib_ring_buffer *buf, |
34 | struct lttng_ust_shm_handle *handle, | |
35 | uint64_t *ts); | |
1ff31389 JD |
36 | int (*sequence_number) (struct lttng_ust_lib_ring_buffer *buf, |
37 | struct lttng_ust_shm_handle *handle, uint64_t *seq); | |
45a00b05 JD |
38 | int (*instance_id) (struct lttng_ust_lib_ring_buffer *buf, |
39 | struct lttng_ust_shm_handle *handle, uint64_t *id); | |
82b9bde8 JD |
40 | }; |
41 | ||
42 | #endif /* _LTTNG_RB_CLIENT_H */ |