]> git.baikalelectronics.ru Git - kernel.git/commit
perf stat: Introduce bpf_counter_ops->disable()
authorSong Liu <song@kernel.org>
Sun, 25 Apr 2021 21:43:33 +0000 (14:43 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Apr 2021 13:30:58 +0000 (10:30 -0300)
commit6c67270ec1e582162b756a3f1d8a5de659def01b
treefd1feda22a604bcc179794b2acf320ad7c66d97b
parentca7396c89dcaa471746f64c21f920aa2aac33824
perf stat: Introduce bpf_counter_ops->disable()

Introduce bpf_counter_ops->disable(), which is used stop counting the
event.

Committer notes:

Added a dummy bpf_counter__disable() to the python binding to avoid
having 'perf test python' failing.

bpf_counter isn't supported in the python binding.

Signed-off-by: Song Liu <song@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: kernel-team@fb.com
Link: https://lore.kernel.org/r/20210425214333.1090950-6-song@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf_counter.c
tools/perf/util/bpf_counter.h
tools/perf/util/evlist.c
tools/perf/util/python.c