|
Packit |
c04fcb |
#ifndef _LTTNG_RB_CLIENT_H
|
|
Packit |
c04fcb |
#define _LTTNG_RB_CLIENT_H
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
/*
|
|
Packit |
c04fcb |
* Copyright (c) 2013 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This library is free software; you can redistribute it and/or
|
|
Packit |
c04fcb |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
c04fcb |
* License as published by the Free Software Foundation; only
|
|
Packit |
c04fcb |
* version 2.1 of the License.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
c04fcb |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
c04fcb |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
c04fcb |
* Lesser General Public License for more details.
|
|
Packit |
c04fcb |
*
|
|
Packit |
c04fcb |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
c04fcb |
* License along with this library; if not, write to the Free Software
|
|
Packit |
c04fcb |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
c04fcb |
*/
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
struct lttng_ust_client_lib_ring_buffer_client_cb {
|
|
Packit |
c04fcb |
struct lttng_ust_lib_ring_buffer_client_cb parent;
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
int (*timestamp_begin) (struct lttng_ust_lib_ring_buffer *buf,
|
|
Packit |
c04fcb |
struct lttng_ust_shm_handle *handle,
|
|
Packit |
c04fcb |
uint64_t *timestamp_begin);
|
|
Packit |
c04fcb |
int (*timestamp_end) (struct lttng_ust_lib_ring_buffer *buf,
|
|
Packit |
c04fcb |
struct lttng_ust_shm_handle *handle,
|
|
Packit |
c04fcb |
uint64_t *timestamp_end);
|
|
Packit |
c04fcb |
int (*events_discarded) (struct lttng_ust_lib_ring_buffer *buf,
|
|
Packit |
c04fcb |
struct lttng_ust_shm_handle *handle,
|
|
Packit |
c04fcb |
uint64_t *events_discarded);
|
|
Packit |
c04fcb |
int (*content_size) (struct lttng_ust_lib_ring_buffer *buf,
|
|
Packit |
c04fcb |
struct lttng_ust_shm_handle *handle,
|
|
Packit |
c04fcb |
uint64_t *content_size);
|
|
Packit |
c04fcb |
int (*packet_size) (struct lttng_ust_lib_ring_buffer *buf,
|
|
Packit |
c04fcb |
struct lttng_ust_shm_handle *handle,
|
|
Packit |
c04fcb |
uint64_t *packet_size);
|
|
Packit |
c04fcb |
int (*stream_id) (struct lttng_ust_lib_ring_buffer *buf,
|
|
Packit |
c04fcb |
struct lttng_ust_shm_handle *handle,
|
|
Packit |
c04fcb |
uint64_t *stream_id);
|
|
Packit |
c04fcb |
int (*current_timestamp) (struct lttng_ust_lib_ring_buffer *buf,
|
|
Packit |
c04fcb |
struct lttng_ust_shm_handle *handle,
|
|
Packit |
c04fcb |
uint64_t *ts);
|
|
Packit |
c04fcb |
int (*sequence_number) (struct lttng_ust_lib_ring_buffer *buf,
|
|
Packit |
c04fcb |
struct lttng_ust_shm_handle *handle, uint64_t *seq);
|
|
Packit |
c04fcb |
int (*instance_id) (struct lttng_ust_lib_ring_buffer *buf,
|
|
Packit |
c04fcb |
struct lttng_ust_shm_handle *handle, uint64_t *id);
|
|
Packit |
c04fcb |
};
|
|
Packit |
c04fcb |
|
|
Packit |
c04fcb |
#endif /* _LTTNG_RB_CLIENT_H */
|