Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1219606 > unrolled thread

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

Started byMatt Fleming <matt@codeblueprint.co.uk>
First post2015-09-05 21:10 +0200
Last post2015-09-12 12:50 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/3] perf tests: Add arch tests Matt Fleming <matt@codeblueprint.co.uk> - 2015-09-05 21:10 +0200
    Re: [PATCH 0/3] perf tests: Add arch tests Jiri Olsa <jolsa@redhat.com> - 2015-09-07 15:00 +0200
      Re: [PATCH 0/3] perf tests: Add arch tests Arnaldo Carvalho de Melo <acme@redhat.com> - 2015-09-08 16:30 +0200
        Re: [PATCH 0/3] perf tests: Add arch tests Matt Fleming <matt@codeblueprint.co.uk> - 2015-09-12 12:50 +0200

#1219606 — [PATCH 0/3] perf tests: Add arch tests

FromMatt Fleming <matt@codeblueprint.co.uk>
Date2015-09-05 21:10 +0200
Subject[PATCH 0/3] perf tests: Add arch tests
Message-ID<q5r0C-Ua-3@gated-at.bofh.it>
From: Matt Fleming <matt.fleming@intel.com>

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/1437561539-27939-1-git-send-email-matt@codeblueprint.co.uk

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

-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1220159

FromJiri Olsa <jolsa@redhat.com>
Date2015-09-07 15:00 +0200
Message-ID<q64bE-60R-19@gated-at.bofh.it>
In reply to#1219606
On Sat, Sep 05, 2015 at 08:02:19PM +0100, Matt Fleming wrote:
> From: Matt Fleming <matt.fleming@intel.com>
> 
> 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.

please base this over Arnaldo's perf/core

jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1220835

FromArnaldo Carvalho de Melo <acme@redhat.com>
Date2015-09-08 16:30 +0200
Message-ID<q6s4i-6PU-17@gated-at.bofh.it>
In reply to#1220159
Em Mon, Sep 07, 2015 at 02:58:18PM +0200, Jiri Olsa escreveu:
> On Sat, Sep 05, 2015 at 08:02:19PM +0100, Matt Fleming wrote:
> > From: Matt Fleming <matt.fleming@intel.com>
> > 
> > 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.
> 
> please base this over Arnaldo's perf/core

Yeah, that is better, sometimes, like now, the difference from
tip/perf/core to acme/perf/core can grow as big as 50, 60 patches :-)

BTW I applied the first patch, with Jiri's ack, its in my perf/core
branch now.

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1223377

FromMatt Fleming <matt@codeblueprint.co.uk>
Date2015-09-12 12:50 +0200
Message-ID<q7Qxz-6vM-19@gated-at.bofh.it>
In reply to#1220835
On Tue, 08 Sep, at 11:24:16AM, Arnaldo Carvalho de Melo wrote:
> Em Mon, Sep 07, 2015 at 02:58:18PM +0200, Jiri Olsa escreveu:
> > 
> > please base this over Arnaldo's perf/core
> 
> Yeah, that is better, sometimes, like now, the difference from
> tip/perf/core to acme/perf/core can grow as big as 50, 60 patches :-)
 
OK, will do.

> BTW I applied the first patch, with Jiri's ack, its in my perf/core

Thanks!

-- 
Matt Fleming, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web