X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Flttng-tracer-core.h;h=7bfa2d6089a07a9f739cb2d05a618bfd18dfc9e8;hb=8aa7600328b791372e17af3da750989bfeb96d1a;hp=76f62510b41e75439f39bb0ada731235b03cadcb;hpb=10544ee8af31afb239e3dfa71cb2fe09d3de3771;p=lttng-ust.git diff --git a/liblttng-ust/lttng-tracer-core.h b/liblttng-ust/lttng-tracer-core.h index 76f62510..7bfa2d60 100644 --- a/liblttng-ust/lttng-tracer-core.h +++ b/liblttng-ust/lttng-tracer-core.h @@ -1,26 +1,14 @@ -#ifndef _LTTNG_TRACER_CORE_H -#define _LTTNG_TRACER_CORE_H - /* + * SPDX-License-Identifier: LGPL-2.1-only + * * Copyright (C) 2005-2011 Mathieu Desnoyers * * This contains the core definitions for the Linux Trace Toolkit. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 of - * the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef _LTTNG_TRACER_CORE_H +#define _LTTNG_TRACER_CORE_H + #include #include #include @@ -28,7 +16,7 @@ #include #include #include -#include +#include /* * The longuest possible namespace proc path is with the cgroup ns @@ -44,9 +32,13 @@ struct lttng_event; struct lttng_ctx_field; struct lttng_ust_lib_ring_buffer_ctx; struct lttng_ctx_value; +struct lttng_event_notifier; +LTTNG_HIDDEN int ust_lock(void) __attribute__ ((warn_unused_result)); +LTTNG_HIDDEN void ust_lock_nocheck(void); +LTTNG_HIDDEN void ust_unlock(void); void lttng_fixup_event_tls(void); @@ -55,9 +47,13 @@ void lttng_fixup_procname_tls(void); void lttng_fixup_cgroup_ns_tls(void); void lttng_fixup_ipc_ns_tls(void); void lttng_fixup_net_ns_tls(void); +LTTNG_HIDDEN void lttng_fixup_time_ns_tls(void); void lttng_fixup_uts_ns_tls(void); +LTTNG_HIDDEN +void lttng_ust_fixup_fd_tracker_tls(void); + const char *lttng_ust_obj_get_name(int id); int lttng_get_notify_socket(void *owner); @@ -80,15 +76,23 @@ void lttng_ust_dummy_get_value(struct lttng_ctx_field *field, int lttng_context_is_app(const char *name); void lttng_ust_fixup_tls(void); -extern void (*lttng_ust_liburcu_bp_before_fork)(void); -extern void (*lttng_ust_liburcu_bp_after_fork_parent)(void); -extern void (*lttng_ust_liburcu_bp_after_fork_child)(void); +LTTNG_HIDDEN +void lttng_event_notifier_notification_send( + struct lttng_event_notifier *event_notifier, + const char *stack_data); + +LTTNG_HIDDEN +struct lttng_counter_transport *lttng_counter_transport_find(const char *name); +LTTNG_HIDDEN +void lttng_counter_transport_register(struct lttng_counter_transport *transport); +LTTNG_HIDDEN +void lttng_counter_transport_unregister(struct lttng_counter_transport *transport); -#ifdef LTTNG_UST_HAVE_PERF_EVENT +#ifdef HAVE_PERF_EVENT void lttng_ust_fixup_perf_counter_tls(void); void lttng_perf_lock(void); void lttng_perf_unlock(void); -#else /* #ifdef LTTNG_UST_HAVE_PERF_EVENT */ +#else /* #ifdef HAVE_PERF_EVENT */ static inline void lttng_ust_fixup_perf_counter_tls(void) { @@ -101,6 +105,6 @@ static inline void lttng_perf_unlock(void) { } -#endif /* #else #ifdef LTTNG_UST_HAVE_PERF_EVENT */ +#endif /* #else #ifdef HAVE_PERF_EVENT */ #endif /* _LTTNG_TRACER_CORE_H */