-
- Downloads
perf stat: Introduce config stat.bpf-counter-events
Currently, to use BPF to aggregate perf event counters, the user uses --bpf-counters option. Enable "use bpf by default" events with a config option, stat.bpf-counter-events. Events with name in the option will use BPF. This also enables mixed BPF event and regular event in the same sesssion. For example: perf config stat.bpf-counter-events=instructions perf stat -e instructions,cs The second command will use BPF for "instructions" but not "cs". 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> Link: https://lore.kernel.org/r/20210425214333.1090950-4-song@kernel.org Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/Documentation/perf-stat.txt 2 additions, 0 deletionstools/perf/Documentation/perf-stat.txt
- tools/perf/builtin-stat.c 25 additions, 17 deletionstools/perf/builtin-stat.c
- tools/perf/util/bpf_counter.c 2 additions, 1 deletiontools/perf/util/bpf_counter.c
- tools/perf/util/config.c 4 additions, 0 deletionstools/perf/util/config.c
- tools/perf/util/evsel.c 22 additions, 0 deletionstools/perf/util/evsel.c
- tools/perf/util/evsel.h 8 additions, 0 deletionstools/perf/util/evsel.h
- tools/perf/util/target.h 0 additions, 5 deletionstools/perf/util/target.h
Loading
Please register or sign in to comment