All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] perf util: bpf perf improvements
@ 2021-04-07  0:35 Song Liu
  2021-04-07  0:35 ` [PATCH v2 1/3] perf util: move bpf_perf definitions to a libperf header Song Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Song Liu @ 2021-04-07  0:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: kernel-team, acme, acme, namhyung, jolsa, songliubraving, Song Liu

This patches set improves bpf_perf (perf-stat --bpf-counter) by
  1) exposing key definitions to a libperf header;
  2) adding compatibility check for perf_attr_map;
  3) introducing config stat.bpf-counter-events.

Changes v1 => v2:
1. Separte 2/3 from 1/3. (Jiri)
2. Rename bperf.h to bpf_perf.h. (Jiri)
3. Other small fixes/optimizations. (Jiri)

Song Liu (3):
  perf util: move bpf_perf definitions to a libperf header
  perf bpf: check perf_attr_map is compatible with the perf binary
  perf-stat: introduce config stat.bpf-counter-events

 tools/lib/perf/include/perf/bpf_perf.h | 31 ++++++++++++++
 tools/perf/Documentation/perf-stat.txt |  2 +
 tools/perf/builtin-stat.c              | 43 ++++++++++++-------
 tools/perf/util/bpf_counter.c          | 57 +++++++++++++++-----------
 tools/perf/util/config.c               | 32 +++++++++++++++
 tools/perf/util/evsel.c                |  2 +
 tools/perf/util/evsel.h                |  6 +++
 tools/perf/util/target.h               |  5 ---
 8 files changed, 134 insertions(+), 44 deletions(-)
 create mode 100644 tools/lib/perf/include/perf/bpf_perf.h

--
2.30.2

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-04-08 19:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07  0:35 [PATCH v2 0/3] perf util: bpf perf improvements Song Liu
2021-04-07  0:35 ` [PATCH v2 1/3] perf util: move bpf_perf definitions to a libperf header Song Liu
2021-04-07  0:36 ` [PATCH v2 2/3] perf bpf: check perf_attr_map is compatible with the perf binary Song Liu
2021-04-07  0:36 ` [PATCH v2 3/3] perf-stat: introduce config stat.bpf-counter-events Song Liu
2021-04-08 11:47   ` Jiri Olsa
2021-04-08 16:39     ` Song Liu
2021-04-08 17:19       ` Arnaldo Carvalho de Melo
2021-04-08 17:20       ` Jiri Olsa
2021-04-08 17:28         ` Song Liu
2021-04-08 17:45           ` Jiri Olsa
2021-04-08 18:08             ` Song Liu
2021-04-08 18:24               ` Jiri Olsa
2021-04-08 18:50                 ` Arnaldo Carvalho de Melo
2021-04-08 19:41                   ` Song Liu
2021-04-08 19:46                 ` Song Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.