From: Fenghua Yu <fenghua.yu@intel.com>
To: "Thomas Gleixner" <tglx@linutronix.de>,
"Ingo Molnar" <mingo@redhat.com>, "H Peter Anvin" <hpa@zytor.com>,
"Tony Luck" <tony.luck@intel.com>,
"Peter Zijlstra" <peterz@infradead.org>,
"Reinette Chatre" <reinette.chatre@intel.com>,
"Babu Moger" <babu.moger@amd.com>,
"James Morse" <james.morse@arm.com>,
"Xiaochen Shen" <xiaochen.shen@intel.com>,
"Ravi V Shankar" <ravi.v.shankar@intel.com>,
"Sai Praneeth Prakhya" <sai.praneeth.prakhya@intel.com>,
"Arshiya Hayatkhan Pathan" <arshiya.hayatkhan.pathan@intel.com>
Cc: "linux-kernel" <linux-kernel@vger.kernel.org>,
Fenghua Yu <fenghua.yu@intel.com>
Subject: [PATCH v4 00/10] selftests/resctrl: Add resctrl selftest
Date: Fri, 21 Dec 2018 16:20:28 -0800 [thread overview]
Message-ID: <1545438038-75107-1-git-send-email-fenghua.yu@intel.com> (raw)
With more and more resctrl features are being added by Intel, AMD
and ARM, a test tool is becoming more and more useful to validate
that both hardware and software functionalities work as expected.
We introduce resctrl selftest to cover resctrl features on both
X86 and ARM architectures. It first implements MBM (Memory Bandwidth
Monitoring) and MBA (Memory Bandwidth Allocation) tests. We can enhance
the selftest tool to include more functionality tests in future.
There is an existing resctrl test suite 'intel_cmt_cat'. But the major
purpose of the tool is to test Intel(R) RDT hardware via writing and
reading MSR registers. It does access resctrl file system; but the
functionalities are very limited. And it doesn't support automatic test
and a lot of manual verifications are involved.
So the selftest tool we are introducing here provides a convenient
tool which does automatic resctrl testing, is easily available in kernel
tree, and will be extended to AMD QoS and ARM MPAM.
The selftest tool is in tools/testing/selftests/resctrl in order to have
generic test code for all architectures.
Changelog:
v4:
- address comments from Balu and Randy
- Add CAT and CQM tests
v3:
- Change code based on comments from Babu Moger
- Remove some unnessary code and use pipe to communicate b/w processes
v2:
- Change code based on comments from Babu Moger
- Clean up other places.
Arshiya Hayatkhan Pathan (4):
selftests/resctrl: Add MBM test
selftests/resctrl: Add MBA test
selftests/resctrl Add Cache QoS Monitoring (CQM) selftest
selftests/resctrl: Add Cache Allocation Technology (CAT) selftest
Fenghua Yu (2):
selftests/resctrl: Add README for resctrl tests
selftests/resctrl: Add the test in MAINTAINERS
Sai Praneeth Prakhya (4):
selftests/resctrl: Add basic resctrl file system operations and data
selftests/resctrl: Read memory bandwidth from perf IMC counter and
from resctrl file system
selftests/resctrl: Add callback to start a benchmark
selftests/resctrl: Add built in benchmark
MAINTAINERS | 1 +
tools/testing/selftests/resctrl/Makefile | 16 +
tools/testing/selftests/resctrl/README | 53 ++
tools/testing/selftests/resctrl/cache.c | 275 +++++++
tools/testing/selftests/resctrl/cat_test.c | 243 ++++++
tools/testing/selftests/resctrl/cqm_test.c | 169 ++++
tools/testing/selftests/resctrl/fill_buf.c | 198 +++++
tools/testing/selftests/resctrl/mba_test.c | 174 +++++
tools/testing/selftests/resctrl/mbm_test.c | 146 ++++
tools/testing/selftests/resctrl/resctrl.h | 104 +++
.../testing/selftests/resctrl/resctrl_tests.c | 175 +++++
tools/testing/selftests/resctrl/resctrl_val.c | 727 ++++++++++++++++++
tools/testing/selftests/resctrl/resctrlfs.c | 643 ++++++++++++++++
13 files changed, 2924 insertions(+)
create mode 100644 tools/testing/selftests/resctrl/Makefile
create mode 100644 tools/testing/selftests/resctrl/README
create mode 100644 tools/testing/selftests/resctrl/cache.c
create mode 100644 tools/testing/selftests/resctrl/cat_test.c
create mode 100644 tools/testing/selftests/resctrl/cqm_test.c
create mode 100644 tools/testing/selftests/resctrl/fill_buf.c
create mode 100644 tools/testing/selftests/resctrl/mba_test.c
create mode 100644 tools/testing/selftests/resctrl/mbm_test.c
create mode 100644 tools/testing/selftests/resctrl/resctrl.h
create mode 100644 tools/testing/selftests/resctrl/resctrl_tests.c
create mode 100644 tools/testing/selftests/resctrl/resctrl_val.c
create mode 100644 tools/testing/selftests/resctrl/resctrlfs.c
--
2.19.1
next reply other threads:[~2018-12-22 0:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-22 0:20 Fenghua Yu [this message]
2018-12-22 0:20 ` [PATCH v4 01/10] selftests/resctrl: Add README for resctrl tests Fenghua Yu
2018-12-22 0:20 ` [PATCH v4 02/10] selftests/resctrl: Add basic resctrl file system operations and data Fenghua Yu
2018-12-22 0:20 ` [PATCH v4 03/10] selftests/resctrl: Read memory bandwidth from perf IMC counter and from resctrl file system Fenghua Yu
2018-12-22 0:20 ` [PATCH v4 04/10] selftests/resctrl: Add callback to start a benchmark Fenghua Yu
2018-12-22 0:20 ` [PATCH v4 05/10] selftests/resctrl: Add built in benchmark Fenghua Yu
2018-12-22 0:20 ` [PATCH v4 06/10] selftests/resctrl: Add MBM test Fenghua Yu
2018-12-22 0:20 ` [PATCH v4 07/10] selftests/resctrl: Add MBA test Fenghua Yu
2018-12-22 0:20 ` [PATCH v4 08/10] selftests/resctrl Add Cache QoS Monitoring (CQM) selftest Fenghua Yu
2019-01-02 20:17 ` Moger, Babu
2019-01-02 20:54 ` Yu, Fenghua
2018-12-22 0:20 ` [PATCH v4 09/10] selftests/resctrl: Add Cache Allocation Technology (CAT) selftest Fenghua Yu
2019-01-14 20:08 ` Moger, Babu
2018-12-22 0:20 ` [PATCH v4 10/10] selftests/resctrl: Add the test in MAINTAINERS Fenghua Yu
2019-01-02 20:22 ` Moger, Babu
2019-01-02 20:56 ` Yu, Fenghua
2019-01-16 15:54 ` [PATCH v4 00/10] selftests/resctrl: Add resctrl selftest Moger, Babu
2019-01-16 19:13 ` Fenghua Yu
2019-01-16 19:39 ` Moger, Babu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1545438038-75107-1-git-send-email-fenghua.yu@intel.com \
--to=fenghua.yu@intel.com \
--cc=arshiya.hayatkhan.pathan@intel.com \
--cc=babu.moger@amd.com \
--cc=hpa@zytor.com \
--cc=james.morse@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=ravi.v.shankar@intel.com \
--cc=reinette.chatre@intel.com \
--cc=sai.praneeth.prakhya@intel.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=xiaochen.shen@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®