X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libcounter%2Fsmp.h;h=38eae489788b5eed0c6a28cec054c8fd7c931ae6;hb=6ba6fd60507f8e045bdc4f1be14e9d99c6a15f7f;hp=f8cf229a6e831fdf0250a665f0e5dac725eea212;hpb=3d5db36a133a18353fb7ddefb3e97c5078b55bee;p=lttng-ust.git diff --git a/libcounter/smp.h b/libcounter/smp.h index f8cf229a..38eae489 100644 --- a/libcounter/smp.h +++ b/libcounter/smp.h @@ -1,37 +1,22 @@ -#ifndef _LIBCOUNTER_SMP_H -#define _LIBCOUNTER_SMP_H - /* - * libcounter/smp.h + * SPDX-License-Identifier: LGPL-2.1-only * * Copyright (C) 2011-2012 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; only - * 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 */ -#include "helper.h" +#ifndef _LIBCOUNTER_SMP_H +#define _LIBCOUNTER_SMP_H /* * 4kB of per-cpu data available. */ #define LTTNG_COUNTER_PER_CPU_MEM_SIZE 4096 -LTTNG_HIDDEN -extern int __lttng_counter_num_possible_cpus; -LTTNG_HIDDEN -extern void _lttng_counter_get_num_possible_cpus(void); +extern int __lttng_counter_num_possible_cpus + __attribute__((visibility("hidden"))); + +extern void _lttng_counter_get_num_possible_cpus(void) + __attribute__((visibility("hidden"))); static inline int lttng_counter_num_possible_cpus(void)