X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libcounter%2Fsmp.h;h=6b3de2875a447d722cdcd5d9e4747dde85084766;hb=7ee76145ae6a7efc03968571b9e4a22d46e92929;hp=00ca7a038ee42ed4ec15ddcc2f037207ceec45a0;hpb=ebabbf580131acd1fe246c4d31fc5c044d36a038;p=lttng-ust.git diff --git a/libcounter/smp.h b/libcounter/smp.h index 00ca7a03..6b3de287 100644 --- a/libcounter/smp.h +++ b/libcounter/smp.h @@ -1,32 +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 */ +#ifndef _LIBCOUNTER_SMP_H +#define _LIBCOUNTER_SMP_H + +#include "ust-helper.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); static inline