summaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/common.c
diff options
context:
space:
mode:
authorJakub Kicinski2018-06-28 23:41:39 +0200
committerDaniel Borkmann2018-07-01 01:01:50 +0200
commiteac7d84519a35fc9fc8071b7d93803b2b075e2a7 (patch)
treea2ec02eaf7ad4a704a9c6fa78535a8b8a9e5e19a /tools/bpf/bpftool/common.c
parenttools: libbpf: restore the ability to load programs from .text section (diff)
downloadkernel-qcow2-linux-eac7d84519a35fc9fc8071b7d93803b2b075e2a7.tar.gz
kernel-qcow2-linux-eac7d84519a35fc9fc8071b7d93803b2b075e2a7.tar.xz
kernel-qcow2-linux-eac7d84519a35fc9fc8071b7d93803b2b075e2a7.zip
tools: libbpf: don't return '.text' as a program for multi-function programs
Make bpf_program__next() skip over '.text' section if object file has pseudo calls. The '.text' section is hardly a program in that case, it's more of a storage for code of functions other than main. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions