public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] oprofile, perf, x86: introduce new functions to reserve perfctrs
@ 2010-03-04 15:22 Robert Richter
  2010-03-04 15:22 ` [PATCH 1/9] perf, x86: reduce number of CONFIG_X86_LOCAL_APIC macros Robert Richter
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Robert Richter @ 2010-03-04 15:22 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Peter Zijlstra, LKML, oprofile-list

This patch set improves the perfctr reservation code. New functions
are available to reserve a counter by its index only. It is no longer
necessary to allocate both msrs of a counter which also improves the
code and makes it easier.

For oprofile a handler is implemented that returns an error now if a
counter is already reserved by a different subsystem such as perf or
watchdog. Before, oprofile silently ignored that counter. Finally the
new reservation functions can be used to allocate special parts of the
pmu such as IBS, which is necessary to use IBS with perf too.

The patches are available in the oprofile tree:

 git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git core

If there are no objections, I suggest to merge it into the
tip/perf/core too, maybe after pending patches went in. If there are
already conflicts, I will do the merge for this.

See enclose changelog.

-Robert


The following changes since commit bb1165d6882f423f90fc7007a88c6c993b7c2ac4:
  Robert Richter (1):
        perf, x86: rename macro in ARCH_PERFMON_EVENTSEL_ENABLE

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git core

Robert Richter (9):
      perf, x86: reduce number of CONFIG_X86_LOCAL_APIC macros
      oprofile, perf, x86: do not allocate evntsel counter msr
      oprofile, perf, x86: introduce new functions to reserve perfctrs by index
      tsc, x86: use new perfctr reservation functions in tsc code
      perf, x86: use new perfctr reservation functions in perf code
      oprofile/x86: rework error handler in nmi_setup()
      oprofile/x86: return -EBUSY if counters are already reserved
      oprofile/x86: group IBS code
      oprofile/x86: implement perfctr reservation for IBS

 arch/x86/include/asm/nmi.h             |    2 +
 arch/x86/include/asm/perf_event.h      |    3 +
 arch/x86/kernel/cpu/perf_event.c       |   36 ++---
 arch/x86/kernel/cpu/perfctr-watchdog.c |   35 +++--
 arch/x86/kernel/tsc.c                  |    8 +-
 arch/x86/oprofile/nmi_int.c            |   38 +++--
 arch/x86/oprofile/op_model_amd.c       |  277 ++++++++++++++++++--------------
 arch/x86/oprofile/op_model_p4.c        |   15 ++-
 arch/x86/oprofile/op_model_ppro.c      |   23 ++--
 arch/x86/oprofile/op_x86_model.h       |    2 +-
 10 files changed, 248 insertions(+), 191 deletions(-)



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

end of thread, other threads:[~2010-03-25 19:33 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-04 15:22 [PATCH 0/9] oprofile, perf, x86: introduce new functions to reserve perfctrs Robert Richter
2010-03-04 15:22 ` [PATCH 1/9] perf, x86: reduce number of CONFIG_X86_LOCAL_APIC macros Robert Richter
2010-03-04 15:22 ` [PATCH 2/9] oprofile, perf, x86: do not allocate evntsel counter msr Robert Richter
2010-03-04 15:22 ` [PATCH 3/9] oprofile, perf, x86: introduce new functions to reserve perfctrs by index Robert Richter
2010-03-20  5:45   ` Andi Kleen
2010-03-25 15:52     ` Robert Richter
2010-03-25 19:33       ` Andi Kleen
2010-03-04 15:22 ` [PATCH 4/9] tsc, x86: use new perfctr reservation functions in tsc code Robert Richter
2010-03-04 15:22 ` [PATCH 5/9] perf, x86: use new perfctr reservation functions in perf code Robert Richter
2010-03-04 15:22 ` [PATCH 6/9] oprofile/x86: rework error handler in nmi_setup() Robert Richter
2010-03-04 15:22 ` [PATCH 7/9] oprofile/x86: return -EBUSY if counters are already reserved Robert Richter
2010-03-04 15:22 ` [PATCH 8/9] oprofile/x86: group IBS code Robert Richter
2010-03-04 15:22 ` [PATCH 9/9] oprofile/x86: implement perfctr reservation for IBS Robert Richter
2010-03-04 17:59 ` [PATCH 0/9] oprofile, perf, x86: introduce new functions to reserve perfctrs Peter Zijlstra
2010-03-11 11:48   ` Peter Zijlstra
2010-03-11 12:47     ` Ingo Molnar
2010-03-11 15:45       ` Robert Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox