]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Remove the duplicate checking of function storage
authorTaeung Song <treeze.taeung@gmail.com>
Sun, 2 Sep 2018 23:30:07 +0000 (08:30 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 6 Sep 2018 05:16:00 +0000 (22:16 -0700)
commit12557378b2f394df6234fccbbe54837e377b72a1
tree620ec864435dcee2bace37d2b233fec44848ad1d
parent524789b7635668c38e38c8fe2c922ef61561d759
libbpf: Remove the duplicate checking of function storage

After the commit 7b0b6f735dc6 ("tools: libbpf: don't return '.text'
as a program for multi-function programs"), bpf_program__next()
in bpf_object__for_each_program skips the function storage such as .text,
so eliminate the duplicate checking.

Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c