]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Simplify bpf_core_parse_spec() signature
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 26 Apr 2022 00:45:09 +0000 (17:45 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 26 Apr 2022 22:41:46 +0000 (15:41 -0700)
commit193e1952acf767cc0f6c9a4c32bf9d7a0bc2b733
treed0dcd53fc6b7682d62f8d8b2a81e4452a8007917
parent26ceb8efcbf132f1aae7441fecbe3fd3531ea006
libbpf: Simplify bpf_core_parse_spec() signature

Simplify bpf_core_parse_spec() signature to take struct bpf_core_relo as
an input instead of requiring callers to decompose them into type_id,
relo, spec_str, etc. This makes using and reusing this helper easier.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220426004511.2691730-9-andrii@kernel.org
tools/lib/bpf/relo_core.c