All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/8] selftests/resctrl: Add resctrl selftest
@ 2018-10-31 21:02 Fenghua Yu
  2018-10-31 21:02 ` [PATCH v3 1/8] selftests/resctrl: Add README for resctrl tests Fenghua Yu
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Fenghua Yu @ 2018-10-31 21:02 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H Peter Anvin, Tony Luck,
	Peter Zijlstra, Reinette Chatre, Babu Moger, James Morse,
	Ravi V Shankar, Sai Praneeth Prakhya, Arshiya Hayatkhan Pathan
  Cc: linux-kernel, Fenghua Yu

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 suit '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:
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 (2):
  selftests/resctrl: Add MBM test
  selftests/resctrl: Add MBA test

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/fill_buf.c      | 175 ++++++
 tools/testing/selftests/resctrl/mba_test.c      | 173 ++++++
 tools/testing/selftests/resctrl/mbm_test.c      | 145 +++++
 tools/testing/selftests/resctrl/membw.c         | 705 ++++++++++++++++++++++++
 tools/testing/selftests/resctrl/resctrl.h       |  79 +++
 tools/testing/selftests/resctrl/resctrl_tests.c | 136 +++++
 tools/testing/selftests/resctrl/resctrlfs.c     | 454 +++++++++++++++
 10 files changed, 1937 insertions(+)
 create mode 100644 tools/testing/selftests/resctrl/Makefile
 create mode 100644 tools/testing/selftests/resctrl/README
 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/membw.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/resctrlfs.c

-- 
2.5.0


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

end of thread, other threads:[~2018-11-21 23:52 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-31 21:02 [PATCH v3 0/8] selftests/resctrl: Add resctrl selftest Fenghua Yu
2018-10-31 21:02 ` [PATCH v3 1/8] selftests/resctrl: Add README for resctrl tests Fenghua Yu
2018-11-01  0:50   ` Randy Dunlap
2018-10-31 21:02 ` [PATCH v3 2/8] selftests/resctrl: Add basic resctrl file system operations and data Fenghua Yu
2018-10-31 21:02 ` [PATCH v3 3/8] selftests/resctrl: Read memory bandwidth from perf IMC counter and from resctrl file system Fenghua Yu
2018-11-12 21:15   ` Moger, Babu
2018-11-21 23:48     ` Pathan, Arshiya Hayatkhan
2018-10-31 21:02 ` [PATCH v3 4/8] selftests/resctrl: Add callback to start a benchmark Fenghua Yu
2018-11-12 21:13   ` Moger, Babu
2018-11-21 23:52     ` Pathan, Arshiya Hayatkhan
2018-10-31 21:02 ` [PATCH v3 5/8] selftests/resctrl: Add built in benchmark Fenghua Yu
2018-10-31 21:02 ` [PATCH v3 6/8] selftests/resctrl: Add MBM test Fenghua Yu
2018-10-31 21:02 ` [PATCH v3 7/8] selftests/resctrl: Add MBA test Fenghua Yu
2018-10-31 21:02 ` [PATCH v3 8/8] selftests/resctrl: Add the test in MAINTAINERS Fenghua Yu

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.