mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-23 01:33:06 +00:00
vmtest: kbuild: enable net_cls cgroups
For the sock_cgroup_ptr() test case in #255, we need CONFIG_SOCK_CGROUP_DATA to be selected. Since Linux 4.10, we get that from CONFIG_CGROUP_BPF, but before that, we need either CONFIG_CGROUP_NET_CLASSID or CONFIG_CGROUP_NET_PRIO. The former appears to be slightly smaller than the latter, so let's enable that one. Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
parent
e5f10c68a8
commit
f0beba13e2
@ -30,7 +30,7 @@ class KernelFlavor(NamedTuple):
|
||||
config: str
|
||||
|
||||
def localversion(self) -> str:
|
||||
localversion = "-vmtest17"
|
||||
localversion = "-vmtest18"
|
||||
# The default flavor should be the "latest" version.
|
||||
localversion += ".1" if self.name == "default" else ".0"
|
||||
localversion += self.name
|
||||
@ -153,6 +153,10 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y
|
||||
|
||||
# For cgroup tests.
|
||||
CONFIG_CGROUPS=y
|
||||
# To select CONFIG_SOCK_CGROUP_DATA. (CONFIG_CGROUP_BPF also selects
|
||||
# CONFIG_SOCK_CGROUP_DATA, but that's only present since Linux kernel commit
|
||||
# 3007098494be ("cgroup: add support for eBPF programs") (in v4.10)).
|
||||
CONFIG_CGROUP_NET_CLASSID=y
|
||||
|
||||
# For kconfig tests.
|
||||
CONFIG_IKCONFIG=m
|
||||
|
Loading…
Reference in New Issue
Block a user