X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Frandom.h;h=073a09a24957601320fe71aafbe08140b10874e2;hb=5b4ea313ddc10d96388a20a42e118c758479a553;hp=30a14d185f3fe5bd83faab78dc2f7cce5827b873;hpb=a82c63f10514ca43282498ea4fdee3908576528a;p=lttng-modules.git diff --git a/wrapper/random.h b/wrapper/random.h index 30a14d18..073a09a2 100644 --- a/wrapper/random.h +++ b/wrapper/random.h @@ -1,17 +1,18 @@ -#ifndef _LTTNG_WRAPPER_RANDOM_H -#define _LTTNG_WRAPPER_RANDOM_H - -/* - * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com) +/* 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. * - * Dual LGPL v2.1/GPL v2 license. + * Copyright (C) 2011-2012 Mathieu Desnoyers */ -#define BOOT_ID_LEN 37 +#ifndef _LTTNG_WRAPPER_RANDOM_H +#define _LTTNG_WRAPPER_RANDOM_H + +#include + +#define BOOT_ID_LEN LTTNG_MODULES_UUID_STR_LEN int wrapper_get_bootid(char *bootid);