X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Ftracepoint-internal.h;h=15661652b000adc2cde3588105b8f37a6857167f;hb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;hp=2c99dbdd4e2876d237b68f5578d6e51d972d4185;hpb=3469bbbe391e22739245dc35091d944b50429179;p=lttng-ust.git diff --git a/liblttng-ust/tracepoint-internal.h b/liblttng-ust/tracepoint-internal.h index 2c99dbdd..15661652 100644 --- a/liblttng-ust/tracepoint-internal.h +++ b/liblttng-ust/tracepoint-internal.h @@ -1,33 +1,21 @@ -#ifndef _LTTNG_TRACEPOINT_INTERNAL_H -#define _LTTNG_TRACEPOINT_INTERNAL_H - /* - * Copyright (c) 2011 - Mathieu Desnoyers - * - * 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. + * SPDX-License-Identifier: LGPL-2.1-only * - * 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 + * Copyright (C) 2011 Mathieu Desnoyers */ +#ifndef _LTTNG_TRACEPOINT_INTERNAL_H +#define _LTTNG_TRACEPOINT_INTERNAL_H + #include -#include #include +#include #define TRACE_DEFAULT TRACE_DEBUG_LINE struct tracepoint_lib { struct cds_list_head list; /* list of registered libs */ - struct tracepoint * const *tracepoints_start; + struct lttng_ust_tracepoint * const *tracepoints_start; int tracepoints_count; struct cds_list_head callsites; }; @@ -38,6 +26,13 @@ extern int tracepoint_probe_register_noupdate(const char *name, extern int tracepoint_probe_unregister_noupdate(const char *name, void (*callback)(void), void *priv); extern void tracepoint_probe_update_all(void); +extern int __tracepoint_probe_register_queue_release(const char *name, + void (*func)(void), void *data, const char *signature); +extern int __tracepoint_probe_unregister_queue_release(const char *name, + void (*func)(void), void *data); +extern void __tracepoint_probe_prune_release_queue(void); + +void lttng_ust_synchronize_trace(void); /* * call after disconnection of last probe implemented within a @@ -45,10 +40,14 @@ extern void tracepoint_probe_update_all(void); */ static inline void tracepoint_synchronize_unregister(void) { - synchronize_rcu_bp(); + lttng_ust_synchronize_trace(); } extern void init_tracepoint(void); extern void exit_tracepoint(void); +void *lttng_ust_tp_check_weak_hidden1(void); +void *lttng_ust_tp_check_weak_hidden2(void); +void *lttng_ust_tp_check_weak_hidden3(void); + #endif /* _LTTNG_TRACEPOINT_INTERNAL_H */