linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/3] perf tests: Adding precise event attribute test
@ 2012-12-19 15:07 Jiri Olsa
  2012-12-19 15:07 ` [PATCH 1/3] Revert "perf: Require exclude_guest to use PEBS - kernel side enforcement" Jiri Olsa
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jiri Olsa @ 2012-12-19 15:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: Corey Ashford, Frederic Weisbecker, Ingo Molnar, Namhyung Kim,
	Paul Mackerras, Peter Zijlstra, Arnaldo Carvalho de Melo

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(-)

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

end of thread, other threads:[~2012-12-24 14:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19 15:07 [RFC 0/3] perf tests: Adding precise event attribute test Jiri Olsa
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

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).