X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libringbuffer%2Fsmp.h;h=b04401e1d9a94f2d36e35d394e83035ba0eb2fd2;hb=071dec4386ff4c89d8b0f92ab1a8dbf079abd50c;hp=bef3e0ef7ff467c01e6937b70bcf3608eb9f51ac;hpb=2b2d6ff75efc17aa74ea9b0a7f8c756d812804bb;p=lttng-ust.git diff --git a/libringbuffer/smp.h b/libringbuffer/smp.h index bef3e0ef..b04401e1 100644 --- a/libringbuffer/smp.h +++ b/libringbuffer/smp.h @@ -1,15 +1,13 @@ -#ifndef _LIBRINGBUFFER_SMP_H -#define _LIBRINGBUFFER_SMP_H - /* - * libringbuffer/smp.h - * - * Copyright 2011 (c) - Mathieu Desnoyers + * SPDX-License-Identifier: LGPL-2.1-only * - * Dual LGPL v2.1/GPL v2 license. + * Copyright (C) 2011-2012 Mathieu Desnoyers */ -#include +#ifndef _LIBRINGBUFFER_SMP_H +#define _LIBRINGBUFFER_SMP_H + +#include "ust-helper.h" #include "getcpu.h" /* @@ -18,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