X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libringbuffer%2Fsmp.h;h=78b1851fff12f2cbde6539f68b257374ba29a249;hb=f37bd90482562c086af4070caf1f218c832f5007;hp=bef3e0ef7ff467c01e6937b70bcf3608eb9f51ac;hpb=2b2d6ff75efc17aa74ea9b0a7f8c756d812804bb;p=lttng-ust.git diff --git a/libringbuffer/smp.h b/libringbuffer/smp.h index bef3e0ef..78b1851f 100644 --- a/libringbuffer/smp.h +++ b/libringbuffer/smp.h @@ -1,15 +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 */ -#include +#ifndef _LIBRINGBUFFER_SMP_H +#define _LIBRINGBUFFER_SMP_H + #include "getcpu.h" /* @@ -18,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