path: root/tools/perf/builtin-record.c
diff options
authorWang Nan <>2015-08-27 02:30:55 +0000
committerArnaldo Carvalho de Melo <>2015-08-31 16:53:15 -0300
commitacf860ae7c53cc8b0c5d372c218332aac3eeba4f (patch)
tree95c0521fcfff8e0c2dc88bca26ecb5fd3e9ec885 /tools/perf/builtin-record.c
parent97db62062ac76e314c8bda4dc5b63f0ea906d15f (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 <> Cc: Alexei Starovoitov <> Cc: Brendan Gregg <> Cc: Daniel Borkmann <> Cc: David Ahern <> Cc: He Kuang <> Cc: Jiri Olsa <> Cc: Kaixu Xia <> Cc: Masami Hiramatsu <> Cc: Namhyung Kim <> Cc: Peter Zijlstra <> Cc: Zefan Li <> Cc: Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/builtin-record.c')
0 files changed, 0 insertions, 0 deletions