From: agustinv@codeaurora.org (Agustin Vega-Frias)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V4] perf: qcom: Add L3 cache PMU driver
Date: Fri, 17 Mar 2017 10:30:33 -0400 [thread overview]
Message-ID: <74bb476166cc6b7f378de337cfd4bfe7@codeaurora.org> (raw)
In-Reply-To: <1489760657-26961-1-git-send-email-agustinv@codeaurora.org>
On 2017-03-17 10:24, Agustin Vega-Frias wrote:
> This adds a new dynamic PMU to the Perf Events framework to program
> and control the L3 cache PMUs in some Qualcomm Technologies SOCs.
>
> The driver supports a distributed cache architecture where the overall
> cache for a socket is comprised of multiple slices each with its own
> PMU.
> Access to each individual PMU is provided even though all CPUs share
> all
> the slices. User space needs to aggregate to individual counts to
> provide
> a global picture.
>
> The driver exports formatting and event information to sysfs so it can
> be used by the perf user space tools with the syntaxes:
> perf stat -a -e l3cache_0_0/read-miss/
> perf stat -a -e l3cache_0_0/event=0x21/
>
> Signed-off-by: Agustin Vega-Frias <agustinv@codeaurora.org>
> ---
> Documentation/perf/qcom_l3_pmu.txt | 25 ++
> drivers/perf/Kconfig | 10 +
> drivers/perf/Makefile | 1 +
> drivers/perf/qcom_l3_pmu.c | 825
> +++++++++++++++++++++++++++++++++++++
> include/linux/cpuhotplug.h | 1 +
> 5 files changed, 862 insertions(+)
> create mode 100644 Documentation/perf/qcom_l3_pmu.txt
> create mode 100644 drivers/perf/qcom_l3_pmu.c
This was built and tested on top of v4.11-rc2.
The perf fuzzer was run overnight and no stability issues were found.
--
Qualcomm Datacenter Technologies, Inc. on behalf of the Qualcomm
Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a
Linux Foundation Collaborative Project.
WARNING: multiple messages have this Message-ID (diff)
From: Agustin Vega-Frias <agustinv@codeaurora.org>
To: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Will Deacon <will.deacon@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Peter Zijlstra <peterz@infradead.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: timur@codeaurora.org, nleeder@codeaurora.org,
agross@codeaurora.org, jcm@redhat.com, msalter@redhat.com,
mlangsdo@redhat.com, ahs3@redhat.com
Subject: Re: [PATCH V4] perf: qcom: Add L3 cache PMU driver
Date: Fri, 17 Mar 2017 10:30:33 -0400 [thread overview]
Message-ID: <74bb476166cc6b7f378de337cfd4bfe7@codeaurora.org> (raw)
In-Reply-To: <1489760657-26961-1-git-send-email-agustinv@codeaurora.org>
On 2017-03-17 10:24, Agustin Vega-Frias wrote:
> This adds a new dynamic PMU to the Perf Events framework to program
> and control the L3 cache PMUs in some Qualcomm Technologies SOCs.
>
> The driver supports a distributed cache architecture where the overall
> cache for a socket is comprised of multiple slices each with its own
> PMU.
> Access to each individual PMU is provided even though all CPUs share
> all
> the slices. User space needs to aggregate to individual counts to
> provide
> a global picture.
>
> The driver exports formatting and event information to sysfs so it can
> be used by the perf user space tools with the syntaxes:
> perf stat -a -e l3cache_0_0/read-miss/
> perf stat -a -e l3cache_0_0/event=0x21/
>
> Signed-off-by: Agustin Vega-Frias <agustinv@codeaurora.org>
> ---
> Documentation/perf/qcom_l3_pmu.txt | 25 ++
> drivers/perf/Kconfig | 10 +
> drivers/perf/Makefile | 1 +
> drivers/perf/qcom_l3_pmu.c | 825
> +++++++++++++++++++++++++++++++++++++
> include/linux/cpuhotplug.h | 1 +
> 5 files changed, 862 insertions(+)
> create mode 100644 Documentation/perf/qcom_l3_pmu.txt
> create mode 100644 drivers/perf/qcom_l3_pmu.c
This was built and tested on top of v4.11-rc2.
The perf fuzzer was run overnight and no stability issues were found.
--
Qualcomm Datacenter Technologies, Inc. on behalf of the Qualcomm
Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a
Linux Foundation Collaborative Project.
next prev parent reply other threads:[~2017-03-17 14:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-17 14:24 [PATCH V4] perf: qcom: Add L3 cache PMU driver Agustin Vega-Frias
2017-03-17 14:24 ` Agustin Vega-Frias
2017-03-17 14:30 ` Agustin Vega-Frias [this message]
2017-03-17 14:30 ` Agustin Vega-Frias
2017-03-23 15:33 ` Mark Rutland
2017-03-23 15:33 ` Mark Rutland
2017-03-23 18:40 ` Agustin Vega-Frias
2017-03-23 18:40 ` Agustin Vega-Frias
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=74bb476166cc6b7f378de337cfd4bfe7@codeaurora.org \
--to=agustinv@codeaurora.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.