From: Jiri Olsa <jolsa@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>,
Frederic Weisbecker <fweisbec@gmail.com>,
Ingo Molnar <mingo@elte.hu>, Namhyung Kim <namhyung@kernel.org>,
Paul Mackerras <paulus@samba.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Arnaldo Carvalho de Melo <acme@redhat.com>
Subject: [RFC 0/3] perf tests: Adding precise event attribute test
Date: Wed, 19 Dec 2012 16:07:19 +0100 [thread overview]
Message-ID: <1355929642-28392-1-git-send-email-jolsa@redhat.com> (raw)
hi,
as per issues with precise attribute [1], adding simple test to
catch it next time.
Patch 2 adds sysfs 'precise' attribute containing maximum value
for perf_event_attr::precise_ip.
Patch 3 adds simple test checking the attribute and creating cycle
events with all possible precise values.
I based this on revert (Patch 1) discussed in [1]. I'm not sure
this revert will tak place at the end, but I wanted to get some
feedback on the 'precise' attribute first.
Attached patches:
1/3 Revert "perf: Require exclude_guest to use PEBS - kernel side enforcement"
2/3 perf x86: Add precise sysfs attribute
3/3 perf tests: Add precise event attribute test
thanks,
jirka
[1] http://marc.info/?l=linux-kernel&m=135536724805356&w=2
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
---
arch/x86/kernel/cpu/perf_event.c | 38 ++++++++++++++++++++++++--------------
tools/perf/Makefile | 1 +
tools/perf/tests/builtin-test.c | 4 ++++
tools/perf/tests/precise.c | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tools/perf/tests/tests.h | 1 +
5 files changed, 109 insertions(+), 14 deletions(-)
next reply other threads:[~2012-12-19 15:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-19 15:07 Jiri Olsa [this message]
2012-12-19 15:07 ` [PATCH 1/3] Revert "perf: Require exclude_guest to use PEBS - kernel side enforcement" Jiri Olsa
2012-12-22 19:21 ` David Ahern
2012-12-24 14:03 ` Jiri Olsa
2012-12-19 15:07 ` [PATCH 2/3] perf x86: Add precise sysfs attribute Jiri Olsa
2012-12-20 5:34 ` Greg KH
2012-12-20 10:27 ` Jiri Olsa
2012-12-20 8:39 ` Namhyung Kim
2012-12-20 11:19 ` Jiri Olsa
2012-12-19 15:07 ` [PATCH 3/3] perf tests: Add precise event attribute test Jiri Olsa
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=1355929642-28392-1-git-send-email-jolsa@redhat.com \
--to=jolsa@redhat.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=cjashfor@linux.vnet.ibm.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=namhyung@kernel.org \
--cc=paulus@samba.org \
/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;
as well as URLs for NNTP newsgroup(s).