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