From: Ricardo Robaina on
gitlab.com
Merge Request:
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3070
NOTE: Truncated patchset due to missing public @redhat.com email
address on your GitLab profile at
https://gitlab.com/-/profile.
Once that is fixed, close and reopen the merge request to
retrigger sending the emails.
JIRA:
https://issues.redhat.com/browse/RHEL-32987
rh_flags is a mechanism that allows tracking usage of specific kernel
features.
The list of used features is accessible via procfs and is printed in panic
messages. It's meant to provide better customer support making possible for
support engineers to be able to see what specific features were used and steer
the support accordingly.
Ricardo Robaina (11):
add support for rh_features
add rh_features to /proc
rh_features: convert to atomic allocation
rh_features: move rh_features entry to sys/kernel
kernel: rh_features: fix reading empty feature list from /proc
rh_flags: Rename rh_features to rh_flags
rh_flags: Replace strlcpy with strscpy
rh_flags: Replace register_sysctl_table with register_sysctl
rh_flags: Remove unused __read_mostly variable
rh_flags: Hide rh_print_flags call behind CONFIG_RHEL_DIFFERENCES
rh_flags: Move rh_flags.o to obj-$(CONFIG_RHEL_DIFFERENCES) line
include/linux/rh_flags.h | 34 +++++++++++
kernel/Makefile | 2 +-
kernel/module/main.c | 6 ++
kernel/rh_flags.c | 119 +++++++++++++++++++++++++++++++++++++++
4 files changed, 160 insertions(+), 1 deletion(-)
create mode 100644 include/linux/rh_flags.h
create mode 100644 kernel/rh_flags.c
Signed-off-by: Ricardo Robaina <rrobaina(a)redhat.com>