X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libringbuffer%2Fsmp.h;h=b04401e1d9a94f2d36e35d394e83035ba0eb2fd2;hb=036d17fbaa66ad9398b3a2606ab5c1f9ed1ea551;hp=034058e9ee54ea032420fa8153636071f83cf3cf;hpb=35897f8b2d311b756b81657dad9c53ef1c0fad8a;p=lttng-ust.git diff --git a/libringbuffer/smp.h b/libringbuffer/smp.h index 034058e9..b04401e1 100644 --- a/libringbuffer/smp.h +++ b/libringbuffer/smp.h @@ -1,14 +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 */ +#ifndef _LIBRINGBUFFER_SMP_H +#define _LIBRINGBUFFER_SMP_H + +#include "ust-helper.h" #include "getcpu.h" /* @@ -17,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