X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fkern-modules.hpp;fp=src%2Fbin%2Flttng-sessiond%2Fkern-modules.hpp;h=d91436256cb6903c4efa5b702dc6db161ece17e5;hp=0000000000000000000000000000000000000000;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hpb=4878de5c7deb512bbdac4fdfc498907efa06fb7c diff --git a/src/bin/lttng-sessiond/kern-modules.hpp b/src/bin/lttng-sessiond/kern-modules.hpp new file mode 100644 index 000000000..d91436256 --- /dev/null +++ b/src/bin/lttng-sessiond/kern-modules.hpp @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2011 David Goulet + * + * SPDX-License-Identifier: GPL-2.0-only + * + */ + +#ifndef _KERN_MODULES_H +#define _KERN_MODULES_H + +/* + * Compatible lttng-modules version. + */ +#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 { + char *name; + enum kernel_module_property_load_policy load_policy; + bool loaded; +}; + +#endif /* _KERN_MODULES_H */