
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/ICA1GK -------------------------------- Add a single config for turning on/off the RVI feature. Signed-off-by: GONG Ruiqi <gongruiqi1@huawei.com> --- init/Kconfig | 1 + kernel/bpf-rvi/Kconfig | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 kernel/bpf-rvi/Kconfig diff --git a/init/Kconfig b/init/Kconfig index 4c566c4bbfa4..5ec5ebc93b2c 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -486,6 +486,7 @@ config AUDITSYSCALL source "kernel/irq/Kconfig" source "kernel/time/Kconfig" source "kernel/bpf/Kconfig" +source "kernel/bpf-rvi/Kconfig" source "kernel/Kconfig.preempt" menu "CPU/Task time and stats accounting" diff --git a/kernel/bpf-rvi/Kconfig b/kernel/bpf-rvi/Kconfig new file mode 100644 index 000000000000..b198b8442310 --- /dev/null +++ b/kernel/bpf-rvi/Kconfig @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (c) 2025 Huawei Technologies Co., Ltd + +config BPF_RVI + bool "Resource View Isolation with BPF" + depends on BPF_EVENTS + depends on BPF_SYSCALL + depends on BPF_JIT + default n + help + A resource view is a bundle of interfaces under /proc and /sys + providing system resource information, e.g. /proc/{cpu,mem}info. This + feature implements a container-sensitive resource view, whose output + can be customized based on the container's configuration and its + limitation on many kinds of system resources. This feature aims to + be a substitute for LXCFS with better performance and scalability. + + If you are unsure how to answer this question, answer N. + -- 2.25.1