X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libringbuffer%2Fsmp.h;h=78b1851fff12f2cbde6539f68b257374ba29a249;hb=f574bfb4d81b26d3cfc0243868d138e33470a950;hp=034058e9ee54ea032420fa8153636071f83cf3cf;hpb=35897f8b2d311b756b81657dad9c53ef1c0fad8a;p=lttng-ust.git diff --git a/libringbuffer/smp.h b/libringbuffer/smp.h index 034058e9..78b1851f 100644 --- a/libringbuffer/smp.h +++ b/libringbuffer/smp.h @@ -1,14 +1,12 @@ -#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 "getcpu.h" /* @@ -17,7 +15,10 @@ */ #define PER_CPU_MEM_SIZE 4096 +__attribute__((visibility("hidden"))) extern int __num_possible_cpus; + +__attribute__((visibility("hidden"))) extern void _get_num_possible_cpus(void); static inline