X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fkern-modules.h;h=d91436256cb6903c4efa5b702dc6db161ece17e5;hp=ff1684a15e814befb221b8762a376bc1716e0f76;hb=adfe4f5ee4088878b68135a4bd64e7260f2330ba;hpb=096102bd1f0665d96f75ad12410ea23189fbf861 diff --git a/src/bin/lttng-sessiond/kern-modules.h b/src/bin/lttng-sessiond/kern-modules.h index ff1684a15..d91436256 100644 --- a/src/bin/lttng-sessiond/kern-modules.h +++ b/src/bin/lttng-sessiond/kern-modules.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2011 - David Goulet + * Copyright (C) 2011 David Goulet * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the Free - * Software Foundation; only version 2 of the License. + * SPDX-License-Identifier: GPL-2.0-only * - * This program 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 General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _KERN_MODULES_H @@ -21,13 +11,21 @@ /* * Compatible lttng-modules version. */ -#define KERN_MODULES_VERSION 0 -#define KERN_MODULES_PATCHLEVEL 9 -#define KERN_MODULES_SUBLEVEL 1 +#define KERN_MODULES_PRE_MAJOR 1 +#define KERN_MODULES_PRE_MINOR 9 + +#define KERN_MODULES_MAJOR 2 +#define KERN_MODULES_MINOR 0 + +enum kernel_module_property_load_policy { + KERNEL_MODULE_PROPERTY_LOAD_POLICY_REQUIRED = 0, + KERNEL_MODULE_PROPERTY_LOAD_POLICY_OPTIONAL = 1, +}; struct kern_modules_param { - const char *name; - int required; + char *name; + enum kernel_module_property_load_policy load_policy; + bool loaded; }; #endif /* _KERN_MODULES_H */