X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libcounter%2Fsmp.h;h=9bfe724c2e1509a95508ee7a4c9cab1fc9f136ed;hb=22c30e27e59035f165bfa0540022eeca113fcd59;hp=f8cf229a6e831fdf0250a665f0e5dac725eea212;hpb=3d5db36a133a18353fb7ddefb3e97c5078b55bee;p=lttng-ust.git diff --git a/libcounter/smp.h b/libcounter/smp.h index f8cf229a..9bfe724c 100644 --- a/libcounter/smp.h +++ b/libcounter/smp.h @@ -1,36 +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 */ -#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 +__attribute__((visibility("hidden"))) extern int __lttng_counter_num_possible_cpus; -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) extern void _lttng_counter_get_num_possible_cpus(void); static inline