On 5/9/22 4:38 PM, Andrii Nakryiko wrote:
On Sun, May 1, 2022 at 12:01 PM Yonghong Song <yhs@xxxxxx> wrote:
Add a test for enum64 value relocations.
Signed-off-by: Yonghong Song <yhs@xxxxxx>
---
Looks good, but can you also add some signed enums for testing?
okay.
.../selftests/bpf/prog_tests/core_reloc.c | 43 +++++++++++++++
.../bpf/progs/btf__core_reloc_enum64val.c | 3 ++
.../progs/btf__core_reloc_enum64val___diff.c | 3 ++
.../btf__core_reloc_enum64val___err_missing.c | 3 ++
...btf__core_reloc_enum64val___val3_missing.c | 3 ++
.../selftests/bpf/progs/core_reloc_types.h | 47 ++++++++++++++++
.../bpf/progs/test_core_reloc_enum64val.c | 53 +++++++++++++++++++
7 files changed, 155 insertions(+)
create mode 100644 tools/testing/selftests/bpf/progs/btf__core_reloc_enum64val.c
create mode 100644 tools/testing/selftests/bpf/progs/btf__core_reloc_enum64val___diff.c
create mode 100644 tools/testing/selftests/bpf/progs/btf__core_reloc_enum64val___err_missing.c
create mode 100644 tools/testing/selftests/bpf/progs/btf__core_reloc_enum64val___val3_missing.c
create mode 100644 tools/testing/selftests/bpf/progs/test_core_reloc_enum64val.c
[...]