X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libringbuffer%2Fsmp.h;h=b04401e1d9a94f2d36e35d394e83035ba0eb2fd2;hb=071dec4386ff4c89d8b0f92ab1a8dbf079abd50c;hp=479a9dc60a01c9810d166ed1944e8fc7dfb4ecb0;hpb=9501d22f55b3a23f382f631c99b2325d1419b5da;p=lttng-ust.git diff --git a/libringbuffer/smp.h b/libringbuffer/smp.h index 479a9dc6..b04401e1 100644 --- a/libringbuffer/smp.h +++ b/libringbuffer/smp.h @@ -1,26 +1,13 @@ -#ifndef _LIBRINGBUFFER_SMP_H -#define _LIBRINGBUFFER_SMP_H - /* - * libringbuffer/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 _LIBRINGBUFFER_SMP_H +#define _LIBRINGBUFFER_SMP_H + +#include "ust-helper.h" #include "getcpu.h" /* @@ -29,7 +16,9 @@ */ #define PER_CPU_MEM_SIZE 4096 +LTTNG_HIDDEN extern int __num_possible_cpus; +LTTNG_HIDDEN extern void _get_num_possible_cpus(void); static inline