Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1697021

[PATCHv2 0/4] perf stat: Enable group read of counters

From Jiri Olsa <jolsa@kernel.org>
Newsgroups linux.kernel
Subject [PATCHv2 0/4] perf stat: Enable group read of counters
Date 2017-07-26 14:10 +0200
Message-ID <u7tix-7n-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


hi,
sending changes to enable group read of perf counters
for perf stat command. It allows us to read whole group
of counters within single read syscall.

v2 changes:
  - fixed release segfault reported by Arnaldo
  - rebased to latest Arnaldo's perf/core
  - patch 1 already merged in

Also available in here:
  git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
  perf/stat_group

Not sure why we haven't supported yet, but anyway it was
unavailable for some time due to a bug which was fixed
just recently via:
  ba5213ae6b88 ("perf/core: Correct event creation with PERF_FORMAT_GROUP")

thanks,
jirka


---
Jiri Olsa (3):
      perf tools: Add perf_evsel__read_size function
      perf tools: Add perf_evsel__read_counter function
      perf stat: Use group read for event groups

 tools/perf/builtin-stat.c |  30 ++++++++++++++++++++---
 tools/perf/util/counts.h  |   1 +
 tools/perf/util/evsel.c   | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 tools/perf/util/evsel.h   |   2 ++
 tools/perf/util/stat.c    |   4 +++
 tools/perf/util/stat.h    |   5 ++--
 6 files changed, 175 insertions(+), 6 deletions(-)

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCHv2 0/4] perf stat: Enable group read of counters Jiri Olsa <jolsa@kernel.org> - 2017-07-26 14:10 +0200
  [PATCH 3/3] perf stat: Use group read for event groups Jiri Olsa <jolsa@kernel.org> - 2017-07-26 14:10 +0200
    [tip:perf/core] perf stat: Use group read for event groups tip-bot for Jiri Olsa <tipbot@zytor.com> - 2017-07-30 11:50 +0200
  [PATCH 1/3] perf tools: Add perf_evsel__read_size function Jiri Olsa <jolsa@kernel.org> - 2017-07-26 14:10 +0200
    [tip:perf/core] perf tools: Add perf_evsel__read_size function tip-bot for Jiri Olsa <tipbot@zytor.com> - 2017-07-30 11:50 +0200
  [PATCH 2/3] perf tools: Add perf_evsel__read_counter function Jiri Olsa <jolsa@kernel.org> - 2017-07-26 14:10 +0200
    [tip:perf/core] perf evsel: Add read_counter() tip-bot for Jiri Olsa <tipbot@zytor.com> - 2017-07-30 11:50 +0200

csiph-web