[Top] [All Lists]

[PATCH v2 0/4] MIPS: perf: Add support for 64-bit MIPS hardware counters

Subject: [PATCH v2 0/4] MIPS: perf: Add support for 64-bit MIPS hardware counters.
From: David Daney <>
Date: Fri, 21 Jan 2011 14:59:32 -0800
Cc: David Daney <>, Peter Zijlstra <>, Paul Mackerras <>, Ingo Molnar <>, Arnaldo Carvalho de Melo <>, Dezhong Diao <>, Gabor Juhos <>, Grant Likely <>, Deng-Cheng Zhu <>
Original-recipient: rfc822;
MIPS hardware performance counters may have either 32-bit or 64-bit
wide counter registers.  The current implementation only supports the
32-bit variety.

These patches aim to add support for 64-bit wide counters while
mantaining support for 32-bit.

Changes from v1:

o Removed Octeon processor support to a separate patch set.

o Rebased against v5 of Deng-Cheng Zhu's cleanups:

o Tried to fix problem where 32-bit counters generated way too many

David Daney (4):
  MIPS: Add accessor macros for 64-bit performance counter registers.
  MIPS: perf: Cleanup formatting in arch/mips/kernel/perf_event.c
  MIPS: perf: Reorganize contents of perf support files.
  MIPS: perf: Add support for 64-bit perf counters.

 arch/mips/Kconfig                    |    2 +-
 arch/mips/include/asm/mipsregs.h     |    8 +
 arch/mips/kernel/Makefile            |    5 +-
 arch/mips/kernel/perf_event.c        |  521 +----------------
 arch/mips/kernel/perf_event_mipsxx.c | 1104 ++++++++++++++++++++++++----------
 5 files changed, 785 insertions(+), 855 deletions(-)

Cc: Peter Zijlstra <>
Cc: Paul Mackerras <>
Cc: Ingo Molnar <>
Cc: Arnaldo Carvalho de Melo <>
Cc: Dezhong Diao <>
Cc: Gabor Juhos <>
Cc: Grant Likely <>
Cc: Deng-Cheng Zhu <>

<Prev in Thread] Current Thread [Next in Thread>