X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Frculfhash-internal.h;h=667dd611d7247b630aa47a290c11ee92a753a375;hb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;hp=86eb501f20415195cf94bb0a79e27c1f8400bca2;hpb=10544ee8af31afb239e3dfa71cb2fe09d3de3771;p=lttng-ust.git diff --git a/liblttng-ust/rculfhash-internal.h b/liblttng-ust/rculfhash-internal.h index 86eb501f..667dd611 100644 --- a/liblttng-ust/rculfhash-internal.h +++ b/liblttng-ust/rculfhash-internal.h @@ -1,33 +1,20 @@ -#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 + * SPDX-License-Identifier: LGPL-2.1-or-later * - * 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. + * Copyright 2011 Mathieu Desnoyers + * Copyright 2011 Lai Jiangshan * - * 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 + * 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) @@ -139,7 +126,11 @@ 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); #ifdef POISON_FREE