Home
last modified time | relevance | path

Searched hist:e6c64855fd7ad565d87b2bd617f4a50d3bdad82f (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/tools/lib/bpf/
H A Dbtf.hdiff e6c64855fd7ad565d87b2bd617f4a50d3bdad82f Fri May 24 13:58:57 CDT 2019 Andrii Nakryiko <andriin@fb.com> libbpf: add btf__parse_elf API to load .BTF and .BTF.ext

Loading BTF and BTF.ext from ELF file is a common need. Instead of
requiring every user to re-implement it, let's provide this API from
libbpf itself. It's mostly copy/paste from `bpftool btf dump`
implementation, which will be switched to libbpf's version in next
patch. btf__parse_elf allows to load BTF and optionally BTF.ext.
This is also useful for tests that need to load/work with BTF, loaded
from test ELF files.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
H A Dbtf.cdiff e6c64855fd7ad565d87b2bd617f4a50d3bdad82f Fri May 24 13:58:57 CDT 2019 Andrii Nakryiko <andriin@fb.com> libbpf: add btf__parse_elf API to load .BTF and .BTF.ext

Loading BTF and BTF.ext from ELF file is a common need. Instead of
requiring every user to re-implement it, let's provide this API from
libbpf itself. It's mostly copy/paste from `bpftool btf dump`
implementation, which will be switched to libbpf's version in next
patch. btf__parse_elf allows to load BTF and optionally BTF.ext.
This is also useful for tests that need to load/work with BTF, loaded
from test ELF files.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
H A Dlibbpf.mapdiff e6c64855fd7ad565d87b2bd617f4a50d3bdad82f Fri May 24 13:58:57 CDT 2019 Andrii Nakryiko <andriin@fb.com> libbpf: add btf__parse_elf API to load .BTF and .BTF.ext

Loading BTF and BTF.ext from ELF file is a common need. Instead of
requiring every user to re-implement it, let's provide this API from
libbpf itself. It's mostly copy/paste from `bpftool btf dump`
implementation, which will be switched to libbpf's version in next
patch. btf__parse_elf allows to load BTF and optionally BTF.ext.
This is also useful for tests that need to load/work with BTF, loaded
from test ELF files.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>