selftests/bpf: Add read_build_id function
authorJiri Olsa <jolsa@kernel.org>
Fri, 31 Mar 2023 09:31:56 +0000 (11:31 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 31 Mar 2023 16:40:16 +0000 (09:40 -0700)
commit88dc8b3605b38a440fba45edcc53a6c7a98eee3b
treee2e9478889db57ed4b12f7ab848d9e80c8754c3e
parent328bafc9a373da5f268d82533dd8f2e66526d168
selftests/bpf: Add read_build_id function

Adding read_build_id function that parses out build id from
specified binary.

It will replace extract_build_id and also be used in following
changes.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20230331093157.1749137-3-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/trace_helpers.c
tools/testing/selftests/bpf/trace_helpers.h