WSL2-Linux-Kernel/tools/lib/bpf
Wang Nan acf860ae7c bpf tools: New API to get name from a BPF object
Before this patch there's no way to connect a loaded bpf object
to its source file. However, during applying perf's '--filter' to BPF
object, without this connection makes things harder, because perf loads
all programs together, but '--filter' setting is for each object.

The API of bpf_object__open_buffer() is changed to allow passing a name.
Fortunately, at this time there's only one user of it (perf test LLVM),
so we change it together.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: 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>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1440742821-44548-2-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-31 16:53:15 -03:00
..
.gitignore bpf tools: Introduce 'bpf' library and add bpf feature check 2015-08-07 10:16:56 -03:00
Build bpf tools: Add bpf.c/h for common bpf operations 2015-08-07 10:16:58 -03:00
Makefile 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
libbpf.c bpf tools: New API to get name from a BPF object 2015-08-31 16:53:15 -03:00
libbpf.h bpf tools: New API to get name from a BPF object 2015-08-31 16:53:15 -03:00