Skip to content

perf tests: Add arch tests

Matt Fleming lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf tests: Introduce iterator function for teststools/perf/tests/builtin-test.c+16 -161 reply
2/3perf tests: Add arch teststools/perf/arch/x86/Build tools/perf/arch/x86/include/arch-tests.h tools/perf/arch/x86/tests/Build +10 more+418 -3736 replies
3/3perf tests: Add Intel CQM testtools/perf/arch/x86/tests/Build tools/perf/arch/x86/tests/arch-tests.c tools/perf/arch/x86/tests/intel-cqm.c+129 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJiri Olsa
1/3A-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] perf tests: Add arch tests

From: Matt Fleming <[email protected]>

To encourage developers to contribute arch-specific tests without feeling guilty about messing up the generic perf tests, this patch series introduces "arch tests" and then adds a test for the Intel CQM perf code which was used to trigger a WARN_ON_ONCE(), fixed in commit 2c534c0da0a6 ("perf/x86/intel/cqm: Return cached counter value from IRQ context").

The concept of additional lists of tests, like the arch tests, can be taken further in the future, for instance Arnaldo has expressed interest in adding tests that require root permissions, etc.

The patch series is based on tip/perf/core.

The original patch that inspired this series can be found here,

https://lkml.kernel.org/r/[email protected]

Matt Fleming (3):
perf tests: Introduce iterator function for tests perf tests: Add arch tests
perf tests: Add Intel CQM test

 tools/perf/arch/x86/Build                    |   2 +-
 tools/perf/arch/x86/include/arch-tests.h     |  18 +++
 tools/perf/arch/x86/tests/Build              |   9 +-
 tools/perf/arch/x86/tests/arch-tests.c       |  28 +++++
 tools/perf/arch/x86/tests/dwarf-unwind.c     |   1 +
 tools/perf/arch/x86/tests/intel-cqm.c        | 124 +++++++++++++++++++
 tools/perf/arch/x86/tests/perf-time-to-tsc.c | 163 ++++++++++++++++++++++++
 tools/perf/arch/x86/tests/rdpmc.c            | 174 ++++++++++++++++++++++++++
 tools/perf/tests/Build                       |   3 -
 tools/perf/tests/builtin-test.c              |  76 ++++++------
 tools/perf/tests/dwarf-unwind.c              |   4 +
 tools/perf/tests/perf-time-to-tsc.c          | 162 ------------------------
 tools/perf/tests/rdpmc.c                     | 177 ---------------------------
 tools/perf/tests/tests.h                     |   9 +-
 14 files changed, 562 insertions(+), 388 deletions(-)
 create mode 100644 tools/perf/arch/x86/include/arch-tests.h
 create mode 100644 tools/perf/arch/x86/tests/arch-tests.c
 create mode 100644 tools/perf/arch/x86/tests/intel-cqm.c
 create mode 100644 tools/perf/arch/x86/tests/perf-time-to-tsc.c
 create mode 100644 tools/perf/arch/x86/tests/rdpmc.c
 delete mode 100644 tools/perf/tests/perf-time-to-tsc.c
 delete mode 100644 tools/perf/tests/rdpmc.c
Signature · 1 line
2.1.0