Move the ringbuffer and counter clients to 'src/common/'
[lttng-ust.git] / src / lib / lttng-ust / lttng-tracer-core.h
CommitLineData
4fbf9cd1 1/*
c0c0989a
MJ
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4fbf9cd1
MD
4 * Copyright (C) 2005-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 *
6 * This contains the core definitions for the Linux Trace Toolkit.
4fbf9cd1
MD
7 */
8
c0c0989a
MJ
9#ifndef _LTTNG_TRACER_CORE_H
10#define _LTTNG_TRACER_CORE_H
11
b728d87e
MD
12#include <stddef.h>
13#include <urcu/arch.h>
4fbf9cd1 14#include <urcu/list.h>
44c72f10 15#include <lttng/ust-tracer.h>
0b4b8811 16#include <lttng/ust-ringbuffer-context.h>
9d315d6d 17#include "common/logging.h"
4fbf9cd1 18
f69fe5fb 19struct lttng_ust_session;
e7bc0ef6 20struct lttng_ust_channel_buffer;
daacdbfc 21struct lttng_ust_ctx_field;
b5457df5 22struct lttng_ust_ring_buffer_ctx;
daacdbfc 23struct lttng_ust_ctx_value;
e7bc0ef6 24struct lttng_ust_event_recorder;
d7d45c0d 25struct lttng_ust_event_notifier;
a2e4d05e 26struct lttng_ust_notification_ctx;
4fbf9cd1 27
1d18d519
MJ
28int ust_lock(void) __attribute__ ((warn_unused_result))
29 __attribute__((visibility("hidden")));
ddabe860 30
1d18d519
MJ
31void ust_lock_nocheck(void)
32 __attribute__((visibility("hidden")));
ddabe860 33
1d18d519
MJ
34void ust_unlock(void)
35 __attribute__((visibility("hidden")));
8165c8da 36
a9fd951a 37void lttng_ust_alloc_tls(void)
1d18d519 38 __attribute__((visibility("hidden")));
ddabe860 39
a9fd951a 40void lttng_vtid_alloc_tls(void)
1d18d519 41 __attribute__((visibility("hidden")));
ddabe860 42
a9fd951a 43void lttng_procname_alloc_tls(void)
1d18d519 44 __attribute__((visibility("hidden")));
ddabe860 45
a9fd951a 46void lttng_cgroup_ns_alloc_tls(void)
1d18d519 47 __attribute__((visibility("hidden")));
ddabe860 48
a9fd951a 49void lttng_ipc_ns_alloc_tls(void)
1d18d519 50 __attribute__((visibility("hidden")));
ddabe860 51
a9fd951a 52void lttng_net_ns_alloc_tls(void)
1d18d519 53 __attribute__((visibility("hidden")));
ddabe860 54
a9fd951a 55void lttng_time_ns_alloc_tls(void)
1d18d519 56 __attribute__((visibility("hidden")));
ddabe860 57
a9fd951a 58void lttng_uts_ns_alloc_tls(void)
1d18d519 59 __attribute__((visibility("hidden")));
eddd8d5d 60
1d18d519
MJ
61const char *lttng_ust_obj_get_name(int id)
62 __attribute__((visibility("hidden")));
74d81a6c 63
1d18d519
MJ
64int lttng_get_notify_socket(void *owner)
65 __attribute__((visibility("hidden")));
32ce8569 66
1d18d519
MJ
67char* lttng_ust_sockinfo_get_procname(void *owner)
68 __attribute__((visibility("hidden")));
94be38e8 69
1d18d519
MJ
70void lttng_ust_sockinfo_session_enabled(void *owner)
71 __attribute__((visibility("hidden")));
95c25348 72
cab88ff8 73void lttng_event_notifier_notification_send(
cda77256 74 const struct lttng_ust_event_notifier *event_notifier,
a2e4d05e 75 const char *stack_data,
b2e37d27 76 struct lttng_ust_probe_ctx *probe_ctx,
1d18d519
MJ
77 struct lttng_ust_notification_ctx *notif_ctx)
78 __attribute__((visibility("hidden")));
cab88ff8 79
eeef0055 80#ifdef HAVE_LINUX_PERF_EVENT_H
a9fd951a 81void lttng_ust_perf_counter_alloc_tls(void)
1d18d519 82 __attribute__((visibility("hidden")));
ddabe860 83
1d18d519
MJ
84void lttng_perf_lock(void)
85 __attribute__((visibility("hidden")));
ddabe860 86
1d18d519
MJ
87void lttng_perf_unlock(void)
88 __attribute__((visibility("hidden")));
eeef0055 89#else /* #ifdef HAVE_LINUX_PERF_EVENT_H */
20142124 90static inline
a9fd951a 91void lttng_ust_perf_counter_alloc_tls(void)
20142124
MD
92{
93}
94static inline
95void lttng_perf_lock(void)
96{
97}
98static inline
99void lttng_perf_unlock(void)
100{
101}
eeef0055 102#endif /* #else #ifdef HAVE_LINUX_PERF_EVENT_H */
20142124 103
7dd08bec 104#endif /* _LTTNG_TRACER_CORE_H */
This page took 0.058982 seconds and 4 git commands to generate.