diff options
| author | 2018-06-04 08:53:41 -0700 | |
|---|---|---|
| committer | 2018-06-04 21:52:26 +0200 | |
| commit | 34ea38ca27991466a8fff849514b4181b42ae2eb (patch) | |
| tree | 82a6a5c2b288e9d1011c4a24e71825cce3b37792 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | Merge branch 'bpf-af-xdp-fixes' (diff) | |
| download | wireguard-linux-34ea38ca27991466a8fff849514b4181b42ae2eb.tar.xz wireguard-linux-34ea38ca27991466a8fff849514b4181b42ae2eb.zip | |
bpf: guard bpf_get_current_cgroup_id() with CONFIG_CGROUPS
Commit bf6fa2c893c5 ("bpf: implement bpf_get_current_cgroup_id()
helper") introduced a new helper bpf_get_current_cgroup_id().
The helper has a dependency on CONFIG_CGROUPS.
When CONFIG_CGROUPS is not defined, using the helper will result
the following verifier error:
kernel subsystem misconfigured func bpf_get_current_cgroup_id#80
which is hard for users to interpret.
Guarding the reference to bpf_get_current_cgroup_id_proto with
CONFIG_CGROUPS will result in below better message:
unknown func bpf_get_current_cgroup_id#80
Fixes: bf6fa2c893c5 ("bpf: implement bpf_get_current_cgroup_id() helper")
Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
