X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Frandom.h;h=d438e1bad960403bdf4597e1b1c4317bc9fccf29;hb=7c6d929d62a6e24fb1dbeaee5cd2c8afe77720b7;hp=d3a94878e673c6bc915714137dcbd25785b23cab;hpb=5a2f5e92e422d87a28581ba97e6b1789ff743bc6;p=lttng-modules.git diff --git a/wrapper/random.h b/wrapper/random.h index d3a94878..d438e1ba 100644 --- a/wrapper/random.h +++ b/wrapper/random.h @@ -1,31 +1,16 @@ -#ifndef _LTTNG_WRAPPER_RANDOM_H -#define _LTTNG_WRAPPER_RANDOM_H - -/* +/* SPDX-License-Identifier: (GPL-2.0-only OR LGPL-2.1-only) + * * wrapper/random.h * - * wrapper around bootid read. Using KALLSYMS to get its address when - * available, else we need to have a kernel that exports this function to GPL - * modules. + * wrapper around bootid read. Read the boot id through the /proc filesystem. * * 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 */ -#include +#ifndef _LTTNG_WRAPPER_RANDOM_H +#define _LTTNG_WRAPPER_RANDOM_H + +#include #define BOOT_ID_LEN LTTNG_MODULES_UUID_STR_LEN