Introduce LTTNG_UST_MAP_POPULATE_POLICY environment variable
[lttng-ust.git] / liblttng-ust / lttng-rb-clients.h
1 #ifndef _LTTNG_RB_CLIENT_H
2 #define _LTTNG_RB_CLIENT_H
3
4 /*
5 * Copyright (c) 2013 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; only
10 * version 2.1 of the License.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 struct lttng_ust_client_lib_ring_buffer_client_cb {
23 struct lttng_ust_lib_ring_buffer_client_cb parent;
24
25 int (*timestamp_begin) (struct lttng_ust_lib_ring_buffer *buf,
26 struct lttng_ust_shm_handle *handle,
27 uint64_t *timestamp_begin);
28 int (*timestamp_end) (struct lttng_ust_lib_ring_buffer *buf,
29 struct lttng_ust_shm_handle *handle,
30 uint64_t *timestamp_end);
31 int (*events_discarded) (struct lttng_ust_lib_ring_buffer *buf,
32 struct lttng_ust_shm_handle *handle,
33 uint64_t *events_discarded);
34 int (*content_size) (struct lttng_ust_lib_ring_buffer *buf,
35 struct lttng_ust_shm_handle *handle,
36 uint64_t *content_size);
37 int (*packet_size) (struct lttng_ust_lib_ring_buffer *buf,
38 struct lttng_ust_shm_handle *handle,
39 uint64_t *packet_size);
40 int (*stream_id) (struct lttng_ust_lib_ring_buffer *buf,
41 struct lttng_ust_shm_handle *handle,
42 uint64_t *stream_id);
43 int (*current_timestamp) (struct lttng_ust_lib_ring_buffer *buf,
44 struct lttng_ust_shm_handle *handle,
45 uint64_t *ts);
46 int (*sequence_number) (struct lttng_ust_lib_ring_buffer *buf,
47 struct lttng_ust_shm_handle *handle, uint64_t *seq);
48 int (*instance_id) (struct lttng_ust_lib_ring_buffer *buf,
49 struct lttng_ust_shm_handle *handle, uint64_t *id);
50 };
51
52 #endif /* _LTTNG_RB_CLIENT_H */
This page took 0.029464 seconds and 4 git commands to generate.