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)
commit14032f2644534ecd5693ebfeef44cbf0d989a7fe
treed0dcd53fc6b7682d62f8d8b2a81e4452a8007917
parentb58af63aab11e4ae00fe96de9505759cfdde8ee9
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