linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] libperf: Add support for scaling counters obtained from the read() system call during multiplexing
@ 2021-09-22 10:16 Shunsuke Nakamura
  2021-09-22 10:16 ` [PATCH v2 1/2] libperf: Add processing to scale the counters obtained during the read() system call when multiplexing Shunsuke Nakamura
  2021-09-22 10:16 ` [PATCH v2 2/2] libperf tests: Add test_stat_multiplexing test Shunsuke Nakamura
  0 siblings, 2 replies; 12+ messages in thread
From: Shunsuke Nakamura @ 2021-09-22 10:16 UTC (permalink / raw)
  To: peterz, mingo, acme, mark.rutland, alexander.shishkin, jolsa, namhyung
  Cc: linux-kernel, linux-perf-users

This patch series supports counter scaling when perf_evsel__read() obtains a counter
using the read() system call during multiplexing.

The first patch adds scaling of counters obtained from the read() system call
during multiplexing.

The second patch adds a test for the first patch.
This patch is based on Vince's rdpmc_multiplexing.c [1]

---
Changes in v2:
 - Fix not to divide by zero when counter scaling
 - Add test to verify that no division by zero occurs


[1] https://github.com/deater/perf_event_tests/blob/master/tests/rdpmc/rdpmc_multiplexing.c


nakamura shunsuke (2):
  libperf: Add processing to scale the counters obtained during the
    read() system call when multiplexing
  libperf tests: Add test_stat_multiplexing test

 tools/lib/perf/evsel.c             |   6 +
 tools/lib/perf/tests/test-evlist.c | 183 +++++++++++++++++++++++++++++
 2 files changed, 189 insertions(+)

-- 
2.27.0


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

end of thread, other threads:[~2021-11-14 16:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 10:16 [PATCH v2 0/2] libperf: Add support for scaling counters obtained from the read() system call during multiplexing Shunsuke Nakamura
2021-09-22 10:16 ` [PATCH v2 1/2] libperf: Add processing to scale the counters obtained during the read() system call when multiplexing Shunsuke Nakamura
2021-09-22 21:34   ` Jiri Olsa
2021-09-28  9:53     ` nakamura.shun
2021-10-05 16:36       ` Rob Herring
2021-10-19  4:59         ` nakamura.shun
2021-10-07 17:17       ` Jiri Olsa
2021-10-19  5:00         ` nakamura.shun
2021-11-08  0:49           ` nakamura.shun
2021-11-14 16:16             ` Jiri Olsa
2021-09-22 10:16 ` [PATCH v2 2/2] libperf tests: Add test_stat_multiplexing test Shunsuke Nakamura
2021-10-08 19:11   ` Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).