summaryrefslogtreecommitdiffstats
path: root/kernel/bpf/cgroup_iter.c
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2022-10-26 06:28:40 +0200
committerAlexei Starovoitov <ast@kernel.org>2022-10-26 08:19:19 +0200
commit5e67b8ef125bb6e83bf0f0442ad7ffc09e7956f9 (patch)
treec03bfe895060ac92501be6c6811175907dbf8e68 /kernel/bpf/cgroup_iter.c
parentMerge branch 'bpf: Avoid unnecessary deadlock detection and failure in task s... (diff)
downloadlinux-5e67b8ef125bb6e83bf0f0442ad7ffc09e7956f9.tar.xz
linux-5e67b8ef125bb6e83bf0f0442ad7ffc09e7956f9.zip
bpf: Make struct cgroup btf id global
Make struct cgroup btf id global so later patch can reuse the same btf id. Acked-by: David Vernet <void@manifault.com> Signed-off-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/r/20221026042840.672602-1-yhs@fb.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/cgroup_iter.c')
-rw-r--r--kernel/bpf/cgroup_iter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/cgroup_iter.c b/kernel/bpf/cgroup_iter.c
index 0d200a993489..c6ffc706d583 100644
--- a/kernel/bpf/cgroup_iter.c
+++ b/kernel/bpf/cgroup_iter.c
@@ -157,7 +157,7 @@ static const struct seq_operations cgroup_iter_seq_ops = {
.show = cgroup_iter_seq_show,
};
-BTF_ID_LIST_SINGLE(bpf_cgroup_btf_id, struct, cgroup)
+BTF_ID_LIST_GLOBAL_SINGLE(bpf_cgroup_btf_id, struct, cgroup)
static int cgroup_iter_seq_init(void *priv, struct bpf_iter_aux_info *aux)
{