selftests/bpf: Add err.h header
authorJiri Olsa <jolsa@kernel.org>
Fri, 31 Mar 2023 09:31:55 +0000 (11:31 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 31 Mar 2023 16:40:16 +0000 (09:40 -0700)
commit328bafc9a373da5f268d82533dd8f2e66526d168
treeb3cbb22676c74c48f6727d46ed1a69d5fbf6c578
parent67efbd57bc6e57de276b964f023f8f947bc52460
selftests/bpf: Add err.h header

Moving error macros from profiler.inc.h to new err.h header.
It will be used in following changes.

Also adding PTR_ERR macro that will be used in following changes.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20230331093157.1749137-2-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/err.h [new file with mode: 0644]
tools/testing/selftests/bpf/progs/profiler.inc.h