[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210922101627.3396398-1-nakamura.shun@fujitsu.com>
Date: Wed, 22 Sep 2021 19:16:25 +0900
From: Shunsuke Nakamura <nakamura.shun@...itsu.com>
To: peterz@...radead.org, mingo@...hat.com, acme@...nel.org,
mark.rutland@....com, alexander.shishkin@...ux.intel.com,
jolsa@...hat.com, namhyung@...nel.org
Cc: linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org
Subject: [PATCH v2 0/2] libperf: Add support for scaling counters obtained from the read() system call during multiplexing
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
Powered by blists - more mailing lists