]> git.baikalelectronics.ru Git - kernel.git/commit
perf bpf: Decouple creating the evlist from adding the SB event
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 24 Apr 2020 15:24:51 +0000 (12:24 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 May 2020 19:35:29 +0000 (16:35 -0300)
commit0c95f15a1cb198b8671a44e3bfd56723b03480b0
tree191921050dec780e42492758daedd099c30d9af5
parentc0a9c8b3a81c95a078c2d96c612464832ccaee78
perf bpf: Decouple creating the evlist from adding the SB event

Renaming bpf_event__add_sb_event() to evlist__add_sb_event() and
requiring that the evlist be allocated beforehand.

This will allow using the same side band thread and evlist to be used
for multiple purposes in addition to react to PERF_RECORD_BPF_EVENT soon
after they are generated.

Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Link: http://lore.kernel.org/lkml/20200429131106.27974-4-acme@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/builtin-top.c
tools/perf/util/bpf-event.c
tools/perf/util/bpf-event.h
tools/perf/util/evlist.c
tools/perf/util/evlist.h