commit | acf860ae7c53cc8b0c5d372c218332aac3eeba4f | [log] [tgz] |
---|---|---|
author | Wang Nan <[email protected]> | Thu Aug 27 02:30:55 2015 +0000 |
committer | Arnaldo Carvalho de Melo <[email protected]> | Mon Aug 31 16:53:15 2015 -0300 |
tree | 95c0521fcfff8e0c2dc88bca26ecb5fd3e9ec885 | |
parent | 97db62062ac76e314c8bda4dc5b63f0ea906d15f [diff] |
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 <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Brendan Gregg <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: David Ahern <[email protected]> Cc: He Kuang <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kaixu Xia <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Zefan Li <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>