X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libcounter%2Fsmp.h;h=9bfe724c2e1509a95508ee7a4c9cab1fc9f136ed;hb=ddabe860f4cf41a4206a8157d83e6b9354f85cb5;hp=00ca7a038ee42ed4ec15ddcc2f037207ceec45a0;hpb=ebabbf580131acd1fe246c4d31fc5c044d36a038;p=lttng-ust.git diff --git a/libcounter/smp.h b/libcounter/smp.h index 00ca7a03..9bfe724c 100644 --- a/libcounter/smp.h +++ b/libcounter/smp.h @@ -1,32 +1,21 @@ -#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 */ +#ifndef _LIBCOUNTER_SMP_H +#define _LIBCOUNTER_SMP_H + /* * 4kB of per-cpu data available. */ #define LTTNG_COUNTER_PER_CPU_MEM_SIZE 4096 +__attribute__((visibility("hidden"))) extern int __lttng_counter_num_possible_cpus; + +__attribute__((visibility("hidden"))) extern void _lttng_counter_get_num_possible_cpus(void); static inline