From 25ebf75b6b5a89dc259ce88bf82c83bcc844317d Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 15 Aug 2023 11:38:35 -0500 Subject: [PATCH] linux: config: enable most of cgroup Signed-off-by: Robert Nelson --- 04_build_linux.sh | 22 ++++++++++++++++++++++ patches/linux/mpfs_defconfig | 26 +++++++++++++++++--------- 2 files changed, 39 insertions(+), 9 deletions(-) diff --git a/04_build_linux.sh b/04_build_linux.sh index 35292a1..f112ffb 100755 --- a/04_build_linux.sh +++ b/04_build_linux.sh @@ -29,7 +29,24 @@ make ARCH=riscv CROSS_COMPILE=${CC} mpfs_defconfig ./scripts/config --enable CONFIG_MEMCG ./scripts/config --enable CONFIG_MEMCG_KMEM +./scripts/config --enable CONFIG_RT_GROUP_SCHED +./scripts/config --enable CONFIG_SCHED_MM_CID +./scripts/config --enable CONFIG_CGROUP_PIDS +./scripts/config --enable CONFIG_CGROUP_FREEZER ./scripts/config --enable CONFIG_CGROUP_HUGETLB +./scripts/config --enable CONFIG_CPUSETS +./scripts/config --enable CONFIG_PROC_PID_CPUSET +./scripts/config --enable CONFIG_CGROUP_DEVICE +./scripts/config --enable CONFIG_CGROUP_CPUACCT +./scripts/config --enable CONFIG_CGROUP_PERF +./scripts/config --enable CONFIG_NAMESPACES +./scripts/config --enable CONFIG_UTS_NS +./scripts/config --enable CONFIG_TIME_NS +./scripts/config --enable CONFIG_IPC_NS +./scripts/config --enable CONFIG_USER_NS +./scripts/config --enable CONFIG_PID_NS +./scripts/config --enable CONFIG_NET_NS +./scripts/config --enable CONFIG_CHECKPOINT_RESTORE ./scripts/config --set-str CONFIG_CMDLINE "" ./scripts/config --disable CONFIG_CMDLINE_FALLBACK @@ -90,6 +107,11 @@ make ARCH=riscv CROSS_COMPILE=${CC} mpfs_defconfig ./scripts/config --disable CONFIG_IMA ./scripts/config --disable CONFIG_EVM +#./scripts/config --disable CONFIG_VMAP_STACK +#./scripts/config --disable CONFIG_SMP + +#make ARCH=riscv CROSS_COMPILE=${CC} menuconfig + echo "make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} Image modules dtbs" make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} Image modules dtbs diff --git a/patches/linux/mpfs_defconfig b/patches/linux/mpfs_defconfig index 72f47d9..decc374 100644 --- a/patches/linux/mpfs_defconfig +++ b/patches/linux/mpfs_defconfig @@ -152,20 +152,27 @@ CONFIG_MEMCG_KMEM=y CONFIG_CGROUP_SCHED=y CONFIG_FAIR_GROUP_SCHED=y CONFIG_CFS_BANDWIDTH=y -# CONFIG_RT_GROUP_SCHED is not set -# CONFIG_CGROUP_PIDS is not set +CONFIG_RT_GROUP_SCHED=y +CONFIG_CGROUP_PIDS=y # CONFIG_CGROUP_RDMA is not set -# CONFIG_CGROUP_FREEZER is not set +CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_HUGETLB=y -# CONFIG_CPUSETS is not set -# CONFIG_CGROUP_DEVICE is not set -# CONFIG_CGROUP_CPUACCT is not set +CONFIG_CPUSETS=y +CONFIG_PROC_PID_CPUSET=y +CONFIG_CGROUP_DEVICE=y +CONFIG_CGROUP_CPUACCT=y CONFIG_CGROUP_BPF=y # CONFIG_CGROUP_MISC is not set # CONFIG_CGROUP_DEBUG is not set CONFIG_SOCK_CGROUP_DATA=y -# CONFIG_NAMESPACES is not set -# CONFIG_CHECKPOINT_RESTORE is not set +CONFIG_NAMESPACES=y +CONFIG_UTS_NS=y +CONFIG_TIME_NS=y +CONFIG_IPC_NS=y +CONFIG_USER_NS=y +CONFIG_PID_NS=y +CONFIG_NET_NS=y +CONFIG_CHECKPOINT_RESTORE=y # CONFIG_SCHED_AUTOGROUP is not set # CONFIG_SYSFS_DEPRECATED is not set # CONFIG_RELAY is not set @@ -208,7 +215,7 @@ CONFIG_MEMBARRIER=y CONFIG_KALLSYMS=y CONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_BASE_RELATIVE=y -# CONFIG_KCMP is not set +CONFIG_KCMP=y CONFIG_RSEQ=y # CONFIG_DEBUG_RSEQ is not set # CONFIG_EMBEDDED is not set @@ -479,6 +486,7 @@ CONFIG_ARCH_USE_QUEUED_RWLOCKS=y CONFIG_QUEUED_RWLOCKS=y CONFIG_ARCH_HAS_MMIOWB=y CONFIG_MMIOWB=y +CONFIG_FREEZER=y # # Executable file formats