linux/tools/lib/bpf
Wang Nan aa9b1ac33c bpf tools: Introduce accessors for struct bpf_program
This patch introduces accessors for user of libbpf to retrieve section
name and fd of a opened/loaded eBPF program. 'struct bpf_prog_handler'
is used for that purpose. Accessors of programs section name and file
descriptor are provided. Set/get private data are also impelmented.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: David Ahern <dsahern@gmail.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kaixu Xia <xiakaixu@huawei.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Zefan Li <lizefan@huawei.com>
Link: http://lkml.kernel.org/r/1435716878-189507-21-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-07 10:16:59 -03:00
..
.gitignore bpf tools: Introduce 'bpf' library and add bpf feature check 2015-08-07 10:16:56 -03:00
bpf.c bpf tools: Introduce bpf_load_program() to bpf.c 2015-08-07 10:16:58 -03:00
bpf.h bpf tools: Introduce bpf_load_program() to bpf.c 2015-08-07 10:16:58 -03:00
Build bpf tools: Add bpf.c/h for common bpf operations 2015-08-07 10:16:58 -03:00
libbpf.c bpf tools: Introduce accessors for struct bpf_program 2015-08-07 10:16:59 -03:00
libbpf.h bpf tools: Introduce accessors for struct bpf_program 2015-08-07 10:16:59 -03:00
Makefile bpf tools: Introduce 'bpf' library and add bpf feature check 2015-08-07 10:16:56 -03:00