Move the getcpu plugin implementation to liblttn-ust-common
[lttng-ust.git] / src / lib / lttng-ust / lttng-rb-clients.h
CommitLineData
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 10#include <stdint.h>
e4db8f98 11#include "common/ringbuffer/ringbuffer-config.h"
fb31eb73 12
82b9bde8 13struct lttng_ust_client_lib_ring_buffer_client_cb {
b5457df5 14 struct lttng_ust_ring_buffer_client_cb parent;
b2f3252a 15
b5457df5
MD
16 int (*timestamp_begin) (struct lttng_ust_ring_buffer *buf,
17 struct lttng_ust_ring_buffer_channel *chan,
b2f3252a 18 uint64_t *timestamp_begin);
b5457df5
MD
19 int (*timestamp_end) (struct lttng_ust_ring_buffer *buf,
20 struct lttng_ust_ring_buffer_channel *chan,
b2f3252a 21 uint64_t *timestamp_end);
b5457df5
MD
22 int (*events_discarded) (struct lttng_ust_ring_buffer *buf,
23 struct lttng_ust_ring_buffer_channel *chan,
b2f3252a 24 uint64_t *events_discarded);
b5457df5
MD
25 int (*content_size) (struct lttng_ust_ring_buffer *buf,
26 struct lttng_ust_ring_buffer_channel *chan,
b2f3252a 27 uint64_t *content_size);
b5457df5
MD
28 int (*packet_size) (struct lttng_ust_ring_buffer *buf,
29 struct lttng_ust_ring_buffer_channel *chan,
b2f3252a 30 uint64_t *packet_size);
b5457df5
MD
31 int (*stream_id) (struct lttng_ust_ring_buffer *buf,
32 struct lttng_ust_ring_buffer_channel *chan,
b2f3252a 33 uint64_t *stream_id);
b5457df5
MD
34 int (*current_timestamp) (struct lttng_ust_ring_buffer *buf,
35 struct lttng_ust_ring_buffer_channel *chan,
fca361e8 36 uint64_t *ts);
b5457df5
MD
37 int (*sequence_number) (struct lttng_ust_ring_buffer *buf,
38 struct lttng_ust_ring_buffer_channel *chan, uint64_t *seq);
39 int (*instance_id) (struct lttng_ust_ring_buffer *buf,
40 struct lttng_ust_ring_buffer_channel *chan, uint64_t *id);
82b9bde8
JD
41};
42
14e0a135 43/*
f27f1026
MD
44 * The ring buffer clients init/exit symbols are private ABI for
45 * liblttng-ust-ctl, which is why they are not hidden.
14e0a135
MD
46 */
47void lttng_ust_ring_buffer_clients_init(void);
48void lttng_ust_ring_buffer_clients_exit(void);
49
1d18d519
MJ
50void lttng_ring_buffer_client_overwrite_init(void)
51 __attribute__((visibility("hidden")));
52
53void lttng_ring_buffer_client_overwrite_rt_init(void)
54 __attribute__((visibility("hidden")));
55
56void lttng_ring_buffer_client_discard_init(void)
57 __attribute__((visibility("hidden")));
58
59void lttng_ring_buffer_client_discard_rt_init(void)
60 __attribute__((visibility("hidden")));
61
62void lttng_ring_buffer_metadata_client_init(void)
63 __attribute__((visibility("hidden")));
64
65
66void lttng_ring_buffer_client_overwrite_exit(void)
67 __attribute__((visibility("hidden")));
68
69void lttng_ring_buffer_client_overwrite_rt_exit(void)
70 __attribute__((visibility("hidden")));
71
72void lttng_ring_buffer_client_discard_exit(void)
73 __attribute__((visibility("hidden")));
74
75void lttng_ring_buffer_client_discard_rt_exit(void)
76 __attribute__((visibility("hidden")));
77
78void lttng_ring_buffer_metadata_client_exit(void)
79 __attribute__((visibility("hidden")));
80
81
a9fd951a 82void lttng_ust_ring_buffer_client_overwrite_alloc_tls(void)
1d18d519
MJ
83 __attribute__((visibility("hidden")));
84
a9fd951a 85void lttng_ust_ring_buffer_client_overwrite_rt_alloc_tls(void)
1d18d519
MJ
86 __attribute__((visibility("hidden")));
87
a9fd951a 88void lttng_ust_ring_buffer_client_discard_alloc_tls(void)
1d18d519
MJ
89 __attribute__((visibility("hidden")));
90
a9fd951a 91void lttng_ust_ring_buffer_client_discard_rt_alloc_tls(void)
1d18d519 92 __attribute__((visibility("hidden")));
14e0a135 93
82b9bde8 94#endif /* _LTTNG_RB_CLIENT_H */
This page took 0.036907 seconds and 4 git commands to generate.