From: sboyd@codeaurora•org (Stephen Boyd)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCHv2 5/9] arm: perf: limit size of accounting data
Date: Mon, 27 Oct 2014 14:13:07 -0700 [thread overview]
Message-ID: <544EB563.7080107@codeaurora.org> (raw)
In-Reply-To: <1414411599-1938-6-git-send-email-mark.rutland@arm.com>
On 10/27/2014 05:06 AM, Mark Rutland wrote:
> Commit 3fc2c83087 (ARM: perf: remove event limit from pmu_hw_events) got
> rid of the upper limit on the number of events an arm_pmu could handle,
> but introduced additional complexity and places a burden on each PMU
> driver to allocate accounting data somehow. So far this has not
> generally been useful as the only users of arm_pmu are the CPU backend
> and the CCI driver.
>
> Now that the CCI driver plugs into the perf subsystem directly, we can
> remove some of the complexities that get in the way of supporting
> heterogeneous CPU PMUs.
>
> This patch restores the original limits on pmu_hw_events fields such
> that the pmu_hw_events data can be allocated as a contiguous block. This
> will simplify dynamic pmu_hw_events allocation in later patches.
>
> Signed-off-by: Mark Rutland <mark.rutland@arm•com>
> Reviewed-by: Will Deacon <will.deacon@arm•com>
>
Reviewed-by: Stephen Boyd <sboyd@codeaurora•org>
Tested-by: Stephen Boyd <sboyd@codeaurora•org>
I ran it through some Krait specific events and it looks ok.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2014-10-27 21:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 12:06 [PATCHv2 0/9] Prepatory rework for multi-PMU support Mark Rutland
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 [this message]
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=544EB563.7080107@codeaurora.org \
--to=sboyd@codeaurora$(echo .)org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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