commit | a228a64fc1e4428e2b96dc68e9ad3c447095c9e7 | [log] [tgz] |
---|---|---|
author | Alexei Starovoitov <ast@kernel.org> | Wed Jul 01 18:10:18 2020 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Sat Jul 25 20:16:32 2020 -0700 |
tree | 60f1dbabaaabc43cd02535c1ff0bbe6aeba481a5 | |
parent | 3f9969f2c040ba2ba635b6b5a7051f404bcc634d [diff] |
bpf: Add bpf_prog iterator It's mostly a copy paste of commit 6086d29def80 ("bpf: Add bpf_map iterator") that is use to implement bpf_seq_file opreations to traverse all bpf programs. v1->v2: Tweak to use build time btf_id Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net>