From: Sandipan Das <sandipan.das@amd.com>
To: Ian Rogers <irogers@google.com>
Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org,
peterz@infradead.org, mingo@redhat.com, acme@kernel.org,
namhyung@kernel.org, mark.rutland@arm.com,
alexander.shishkin@linux.intel.com, jolsa@kernel.org,
adrian.hunter@intel.com, eranian@google.com,
ravi.bangoria@amd.com, ananth.narayan@amd.com
Subject: Re: [PATCH 1/4] perf vendor events amd: Add Zen 5 core events
Date: Tue, 12 Mar 2024 15:29:26 +0530 [thread overview]
Message-ID: <ae49f714-24c9-485d-b2f3-a319a53ba1a3@amd.com> (raw)
In-Reply-To: <CAP-5=fUV=6my-+z0Qc+TS2+CbKT1DqsLbpHZrZLitqpAnDd2-A@mail.gmail.com>
On 3/11/2024 11:10 PM, Ian Rogers wrote:
> On Sun, Mar 10, 2024 at 10:23 PM Sandipan Das <sandipan.das@amd.com> wrote:
>>
>> Add core events taken from Section 1.4 "Core Performance Monitor
>> Counters" of the Performance Monitor Counters for AMD Family 1Ah Model
>> 00h-0Fh Processors document available at the link below. This
>> constitutes events which capture information on op dispatch, execution
>> and retirement, branch prediction, L1 and L2 cache activity,
>> TLB activity, etc.
>>
>> Link: https://bugzilla.kernel.org/attachment.cgi?id=305974
>> Signed-off-by: Sandipan Das <sandipan.das@amd.com>
>> ---
>> .../pmu-events/arch/x86/amdzen5/branch.json | 82 ++
>> .../pmu-events/arch/x86/amdzen5/cache.json | 605 +++++++++++++
>> .../pmu-events/arch/x86/amdzen5/core.json | 122 +++
>> .../arch/x86/amdzen5/floating-point.json | 830 ++++++++++++++++++
>> .../pmu-events/arch/x86/amdzen5/memory.json | 180 ++++
>> .../pmu-events/arch/x86/amdzen5/other.json | 168 ++++
>> 6 files changed, 1987 insertions(+)
>> create mode 100644 tools/perf/pmu-events/arch/x86/amdzen5/branch.json
>> create mode 100644 tools/perf/pmu-events/arch/x86/amdzen5/cache.json
>> create mode 100644 tools/perf/pmu-events/arch/x86/amdzen5/core.json
>> create mode 100644 tools/perf/pmu-events/arch/x86/amdzen5/floating-point.json
>> create mode 100644 tools/perf/pmu-events/arch/x86/amdzen5/memory.json
>> create mode 100644 tools/perf/pmu-events/arch/x86/amdzen5/other.json
>>
>> diff --git a/tools/perf/pmu-events/arch/x86/amdzen5/branch.json b/tools/perf/pmu-events/arch/x86/amdzen5/branch.json
>> new file mode 100644
>> index 000000000000..208c646c59ca
>> --- /dev/null
>> +++ b/tools/perf/pmu-events/arch/x86/amdzen5/branch.json
>> @@ -0,0 +1,82 @@
>> +[
>> + {
>> + "EventName": "bp_l2_btb_correct",
>> + "EventCode": "0x8b",
>> + "BriefDescription": "L2 branch prediction overrides existing prediction (speculative)."
>> + },
>> + {
>> + "EventName": "bp_dyn_ind_pred",
>> + "EventCode": "0x8e",
>> + "BriefDescription": "Dynamic indirect predictions (branch used the indirect predictor to make a prediction)."
>> + },
>> + {
>> + "EventName": "bp_de_redirect",
>> + "EventCode": "0x91",
>> + "BriefDescription": "Instruction decoder corrects the predicted target and resteers the branch predictor."
>> + },
>> + {
>> + "EventName": "ex_ret_brn",
>> + "EventCode": "0xc2",
>> + "BriefDescription": "Retired branch instructions (all types of architectural control flow changes, including exceptions and interrupts)."
>> + },
>
> So the "bp_" prefix means branch predictor, but here this is an "ex_"
> prefix. You've put them both in the topic "branch".
>
> [ ... snip ... ]
>
>> diff --git a/tools/perf/pmu-events/arch/x86/amdzen5/other.json b/tools/perf/pmu-events/arch/x86/amdzen5/other.json
>> new file mode 100644
>> index 000000000000..9d49a23622e9
>> --- /dev/null
>> +++ b/tools/perf/pmu-events/arch/x86/amdzen5/other.json
>> @@ -0,0 +1,168 @@
>> +[
>> + {
>> + "EventName": "bp_redirects.resync",
>> + "EventCode": "0x9f",
>> + "BriefDescription": "Redirects of the branch predictor caused by resyncs.",
>> + "UMask": "0x01"
>> + },
>
> Here is a branch predictor "bp_" event but the topic is "other", why
> isn't it a topic of branch?
>
> Given the number of events categorized as topic "other" wouldn't it be
> better to regenerate the events just using the prefix to set the
> topic?
>
Sure, I'll reorganize them.
next prev parent reply other threads:[~2024-03-12 9:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-11 5:23 [PATCH 0/4] perf vendor events amd: Add Zen 5 events and metrics Sandipan Das
2024-03-11 5:23 ` [PATCH 1/4] perf vendor events amd: Add Zen 5 core events Sandipan Das
2024-03-11 17:40 ` Ian Rogers
2024-03-12 9:59 ` Sandipan Das [this message]
2024-03-11 5:23 ` [PATCH 2/4] perf vendor events amd: Add Zen 5 uncore events Sandipan Das
2024-03-11 17:43 ` Ian Rogers
2024-03-12 10:02 ` Sandipan Das
2024-03-11 5:23 ` [PATCH 3/4] perf vendor events amd: Add Zen 5 metrics Sandipan Das
2024-03-11 18:46 ` Ian Rogers
2024-03-12 10:32 ` Sandipan Das
2024-03-11 5:23 ` [PATCH 4/4] perf vendor events amd: Add Zen 5 mapping Sandipan Das
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=ae49f714-24c9-485d-b2f3-a319a53ba1a3@amd.com \
--to=sandipan.das@amd.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=ananth.narayan@amd.com \
--cc=eranian@google.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=ravi.bangoria@amd.com \
/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).