tools: libbpf: add a correctly named define for map iteration
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 28 Feb 2019 03:04:12 +0000 (19:04 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 28 Feb 2019 23:53:45 +0000 (00:53 +0100)
commitf74a53d9a567f6bc6f6d8460e84c76bd2a45d016
treead08145718d46ecfe1600c2e6c6cf651e3513ce9
parentea9b6362018358a46008a8af339178469a4efe13
tools: libbpf: add a correctly named define for map iteration

For historical reasons the helper to loop over maps in an object
is called bpf_map__for_each while it really should be called
bpf_object__for_each_map.  Rename and add a correctly named
define for backward compatibility.

Switch all in-tree users to the correct name (Quentin).

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>
tools/bpf/bpftool/prog.c
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/perf/util/bpf-loader.c
tools/testing/selftests/bpf/test_libbpf_open.c