perf bpf: Extract logic to create program names from perf_event__synthesize_one_bpf_p...
authorSong Liu <songliubraving@fb.com>
Tue, 19 Mar 2019 16:54:53 +0000 (09:54 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 21 Mar 2019 14:27:04 +0000 (11:27 -0300)
commitfc462ac75b36daaa61e9bda7fba66ed1b3a500b4
treeb2c92d96b2fc8bc7552caa13dc5520a23a897f6c
parentd56354dc49091e33d9ffca732ac913ed2df70537
perf bpf: Extract logic to create program names from perf_event__synthesize_one_bpf_prog()

Extract logic to create program names to synthesize_bpf_prog_name(), so
that it can be reused in header.c:print_bpf_prog_info().

This commit doesn't change the behavior.

Signed-off-by: Song Liu <songliubraving@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stanislav Fomichev <sdf@google.com>
Link: http://lkml.kernel.org/r/20190319165454.1298742-2-songliubraving@fb.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf-event.c