X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Ftracepoint-internal.h;h=18705e8b1aef60edb3cc5dd507275705d7476f0c;hb=74579d3b9664fd1f60c0241cb569c6a2bfee05ff;hp=298f78e7313f7e7299b6ffc84f1cdd13a20148f5;hpb=baa1e0bcf6630bd3f9282b82586d1a730f3d7ae2;p=lttng-ust.git diff --git a/liblttng-ust/tracepoint-internal.h b/liblttng-ust/tracepoint-internal.h index 298f78e7..18705e8b 100644 --- a/liblttng-ust/tracepoint-internal.h +++ b/liblttng-ust/tracepoint-internal.h @@ -1,27 +1,15 @@ -#ifndef _LTTNG_TRACEPOINT_INTERNAL_H -#define _LTTNG_TRACEPOINT_INTERNAL_H - /* - * Copyright (c) 2011 - Mathieu Desnoyers + * SPDX-License-Identifier: LGPL-2.1-only * - * 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 + * 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 @@ -44,17 +32,8 @@ extern int __tracepoint_probe_unregister_queue_release(const char *name, void (*func)(void), void *data); extern void __tracepoint_probe_prune_release_queue(void); -/* - * call after disconnection of last probe implemented within a - * shared object before unmapping the library that contains the probe. - */ -static inline void tracepoint_synchronize_unregister(void) -{ - synchronize_rcu_bp(); -} - -extern void init_tracepoint(void); -extern void exit_tracepoint(void); +void lttng_ust_tp_init(void); +void lttng_ust_tp_exit(void); void *lttng_ust_tp_check_weak_hidden1(void); void *lttng_ust_tp_check_weak_hidden2(void);