diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2020-10-22 23:27:38 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-10-26 18:33:12 +0300 |
commit | 472547778de24e2764ab325268dd5b77e6923939 (patch) | |
tree | 9fc159915a88f18e7f97f36ebf2969953edde016 /samples/bpf | |
parent | 435ccfa894e35e3d4a1799e6ac030e48a7b69ef5 (diff) | |
download | linux-472547778de24e2764ab325268dd5b77e6923939.tar.xz |
selftest/bpf: Fix profiler test using CO-RE relocation for enums
Instead of hard-coding invalid pids_cgrp_id, use Kconfig to detect the
presence of that enum value and CO-RE to capture its actual value in the
hosts's kernel.
Fixes: 03d4d13fab3f ("selftests/bpf: Add profiler test")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20201022202739.3667367-1-andrii@kernel.org
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions