X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Frculfhash-internal.h;h=26971580aec9d146950bd8a3432433dc8cc6cdd1;hb=1d18d519668cd559dcafa1f18113edceb2418ed0;hp=cb2f69c8ac476da0ceb03fa1f8e05e281deabd71;hpb=d2dd7baae6c00bdf2e08e03161db785f3a5565e4;p=lttng-ust.git diff --git a/liblttng-ust/rculfhash-internal.h b/liblttng-ust/rculfhash-internal.h index cb2f69c8..26971580 100644 --- a/liblttng-ust/rculfhash-internal.h +++ b/liblttng-ust/rculfhash-internal.h @@ -1,34 +1,19 @@ -#ifndef _LTTNG_UST_RCULFHASH_INTERNAL_H -#define _LTTNG_UST_RCULFHASH_INTERNAL_H - /* - * liblttng-ust/rculfhash-internal.h - * - * Internal header for Lock-Free RCU Hash Table - * - * Copyright 2011 - Mathieu Desnoyers - * Copyright 2011 - Lai Jiangshan - * - * 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; either - * version 2.1 of the License, or (at your option) any later version. + * SPDX-License-Identifier: LGPL-2.1-or-later * - * 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. + * Copyright 2011 Mathieu Desnoyers + * Copyright 2011 Lai Jiangshan * - * 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 + * Internal header for Lock-Free RCU Hash Table */ +#ifndef _LTTNG_UST_RCULFHASH_INTERNAL_H +#define _LTTNG_UST_RCULFHASH_INTERNAL_H + #include "rculfhash.h" #include #include #include -#include "helper.h" #ifdef DEBUG #define dbg_printf(fmt, args...) printf("[debug lttng-ust rculfhash] " fmt, ## args) @@ -140,12 +125,14 @@ struct lttng_ust_lfht { */ }; -LTTNG_HIDDEN -extern unsigned int lttng_ust_lfht_fls_ulong(unsigned long x); -LTTNG_HIDDEN -extern int lttng_ust_lfht_get_count_order_u32(uint32_t x); -LTTNG_HIDDEN -extern int lttng_ust_lfht_get_count_order_ulong(unsigned long x); +extern unsigned int lttng_ust_lfht_fls_ulong(unsigned long x) + __attribute__((visibility("hidden"))); + +extern int lttng_ust_lfht_get_count_order_u32(uint32_t x) + __attribute__((visibility("hidden"))); + +extern int lttng_ust_lfht_get_count_order_ulong(unsigned long x) + __attribute__((visibility("hidden"))); #ifdef POISON_FREE #define poison_free(ptr) \