From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 0/9] Prepatory rework for multi-PMU support.
Date: Mon, 27 Oct 2014 12:06:30 +0000 [thread overview]
Message-ID: <1414411599-1938-1-git-send-email-mark.rutland@arm.com> (raw)
This series performs inital preparation for big.LITTLE perf support. It
depends on the CCI rework posted previously [1], as the removal of
get_hw_events and the percpu rework is incompatible with the single
global set of events the CCI has.
Since v1 [2]:
* Added cpu_pmu_destroy to clean up dynamically allocated data and cpu
notifiers in failure paths. Due to this change I've dropped the
existing tags from patches 8 and 9.
* Make pmu_probe_table const.
* Removed the unintentional newline change from patch 3, and added a new
patch to make format strings use newlines consistently.
* In patch 4 the armpmu_map_event type variable remains an int, but the
(redundant) check against PERF_TYPE_MAX is removed such that it is
only used for an equality check, as per [3].
As a result of this series:
* The callchain handling is split from the PMU driver, as with metag,
powerpc, sh, and x86. This enables callchain handling for software
events when the kernel is built without CONFIG_HW_PERF_EVENTS.
* Legacy MIDR-based PMU probing is factored into a table that a
subsequent series will split into separate drivers. On its own this
should not result in a behavioural change.
* The ARM PMU accounting structures are reorganised and absorbed by
struct arm_pmu, which will make possible the allocation and management
of multiple PMUs in a later patch series.
Thanks,
Mark.
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/295509.html
[2] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/295820.html
[3] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/296088.html
Mark Rutland (9):
arm: perf: factor out callchain code
arm: perf: add missing pr_info newlines
arm: perf: make PMU probing data-driven
arm: perf: use IDR types for CPU PMUs
arm: perf: limit size of accounting data
arm: perf: kill get_hw_events()
arm: perf: fold percpu_pmu into pmu_hw_events
arm: perf: dynamically allocate cpu hardware data
arm: perf: fold hotplug notifier into arm_pmu
arch/arm/include/asm/perf_event.h | 2 +-
arch/arm/include/asm/pmu.h | 36 +++++++-
arch/arm/kernel/Makefile | 2 +-
arch/arm/kernel/perf_callchain.c | 137 +++++++++++++++++++++++++++
arch/arm/kernel/perf_event.c | 162 ++++----------------------------
arch/arm/kernel/perf_event_cpu.c | 179 ++++++++++++++++++------------------
arch/arm/kernel/perf_event_v6.c | 12 +--
arch/arm/kernel/perf_event_v7.c | 14 +--
arch/arm/kernel/perf_event_xscale.c | 20 ++--
9 files changed, 301 insertions(+), 263 deletions(-)
create mode 100644 arch/arm/kernel/perf_callchain.c
--
1.9.1
next reply other threads:[~2014-10-27 12:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 12:06 Mark Rutland [this message]
2014-10-27 12:06 ` [PATCHv2 1/9] arm: perf: factor out callchain code Mark Rutland
2014-10-27 12:06 ` [PATCHv2 2/9] arm: perf: add missing pr_info newlines Mark Rutland
2014-10-27 20:37 ` Stephen Boyd
2014-10-27 12:06 ` [PATCHv2 3/9] arm: perf: make PMU probing data-driven Mark Rutland
2014-10-27 20:37 ` Stephen Boyd
2014-10-27 12:06 ` [PATCHv2 4/9] arm: perf: use IDR types for CPU PMUs Mark Rutland
2014-10-27 12:06 ` [PATCHv2 5/9] arm: perf: limit size of accounting data Mark Rutland
2014-10-27 21:13 ` Stephen Boyd
2014-10-27 12:06 ` [PATCHv2 6/9] arm: perf: kill get_hw_events() Mark Rutland
2014-10-27 20:37 ` Stephen Boyd
2014-10-27 12:06 ` [PATCHv2 7/9] arm: perf: fold percpu_pmu into pmu_hw_events Mark Rutland
2014-10-27 12:06 ` [PATCHv2 8/9] arm: perf: dynamically allocate cpu hardware data Mark Rutland
2014-10-27 20:37 ` Stephen Boyd
2014-10-27 12:06 ` [PATCHv2 9/9] arm: perf: fold hotplug notifier into arm_pmu Mark Rutland
2014-10-27 20:37 ` Stephen Boyd
2014-10-28 14:46 ` Mark Rutland
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=1414411599-1938-1-git-send-email-mark.rutland@arm.com \
--to=mark.rutland@arm.com \
--cc=linux-arm-kernel@lists.infradead.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).