aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_prog_linfo.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2018-12-08 00:42:31 +0000
committerAlexei Starovoitov <[email protected]>2018-12-09 21:54:38 +0000
commit3d65014146c69bbc4d2947f60dbd722d352cdc46 (patch)
treeea591de92250d7ff871083d63bd5823c68b9bee9 /tools/lib/bpf/bpf_prog_linfo.c
parentbpf: libbpf: Refactor and bug fix on the bpf_func_info loading logic (diff)
downloadkernel-3d65014146c69bbc4d2947f60dbd722d352cdc46.tar.gz
kernel-3d65014146c69bbc4d2947f60dbd722d352cdc46.zip
bpf: libbpf: Add btf_line_info support to libbpf
This patch adds bpf_line_info support to libbpf: 1) Parsing the line_info sec from ".BTF.ext" 2) Relocating the line_info. If the main prog *_info relocation fails, it will ignore the remaining subprog line_info and continue. If the subprog *_info relocation fails, it will bail out. 3) BPF_PROG_LOAD a prog with line_info Signed-off-by: Martin KaFai Lau <[email protected]> Acked-by: Yonghong Song <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions