-
Notifications
You must be signed in to change notification settings - Fork 122
[Deepin-Kernel-SIG] [linux 6.6-y] [Upstream] [Alibaba] [ARM] Support CMN700 PMU metric for Neoverse (CMN PMU metric回合6.6内核) #832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
401a185
perf metric: "Compat" supports regular expression matching identifiers
2bcf7a4
perf jevents: Support EventidCode and NodeType
cff9956
perf test: Make matching_pmu effective
f78b95c
perf test: Add pmu-event test for "Compat" and new event_field.
7cfb15b
perf jevents: Add support for Arm CMN PMU aliasing
84d7b06
perf vendor events: Add JSON metrics for Arm CMN
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,266 @@ | ||
| [ | ||
| { | ||
| "EventName": "hnf_cache_miss", | ||
| "EventidCode": "0x1", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts total cache misses in first lookup result (high priority).", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_slc_sf_cache_access", | ||
| "EventidCode": "0x2", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of cache accesses in first access (high priority).", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_cache_fill", | ||
| "EventidCode": "0x3", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts total allocations in HN SLC (all cache line allocations to SLC).", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_pocq_retry", | ||
| "EventidCode": "0x4", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of retried requests.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_pocq_reqs_recvd", | ||
| "EventidCode": "0x5", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of requests that HN receives.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_sf_hit", | ||
| "EventidCode": "0x6", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of SF hits.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_sf_evictions", | ||
| "EventidCode": "0x7", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of SF eviction cache invalidations initiated.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_dir_snoops_sent", | ||
| "EventidCode": "0x8", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of directed snoops sent (not including SF back invalidation).", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_brd_snoops_sent", | ||
| "EventidCode": "0x9", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of multicast snoops sent (not including SF back invalidation).", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_slc_eviction", | ||
| "EventidCode": "0xa", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of SLC evictions (dirty only).", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_slc_fill_invalid_way", | ||
| "EventidCode": "0xb", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of SLC fills to an invalid way.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_mc_retries", | ||
| "EventidCode": "0xc", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of retried transactions by the MC.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_mc_reqs", | ||
| "EventidCode": "0xd", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of requests that are sent to MC.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hnf_qos_hh_retry", | ||
| "EventidCode": "0xe", | ||
| "NodeType": "0x5", | ||
| "BriefDescription": "Counts number of times a HighHigh priority request is protocolretried at the HN‑F.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "rnid_s0_rdata_beats", | ||
| "EventidCode": "0x1", | ||
| "NodeType": "0xa", | ||
| "BriefDescription": "Number of RData beats (RVALID and RREADY) dispatched on port 0. This event measures the read bandwidth, including CMO responses.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "rnid_s1_rdata_beats", | ||
| "EventidCode": "0x2", | ||
| "NodeType": "0xa", | ||
| "BriefDescription": "Number of RData beats (RVALID and RREADY) dispatched on port 1. This event measures the read bandwidth, including CMO responses.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "rnid_s2_rdata_beats", | ||
| "EventidCode": "0x3", | ||
| "NodeType": "0xa", | ||
| "BriefDescription": "Number of RData beats (RVALID and RREADY) dispatched on port 2. This event measures the read bandwidth, including CMO responses.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "rnid_rxdat_flits", | ||
| "EventidCode": "0x4", | ||
| "NodeType": "0xa", | ||
| "BriefDescription": "Number of RXDAT flits received. This event measures the true read data bandwidth, excluding CMOs.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "rnid_txdat_flits", | ||
| "EventidCode": "0x5", | ||
| "NodeType": "0xa", | ||
| "BriefDescription": "Number of TXDAT flits dispatched. This event measures the write bandwidth.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "rnid_txreq_flits_total", | ||
| "EventidCode": "0x6", | ||
| "NodeType": "0xa", | ||
| "BriefDescription": "Number of TXREQ flits dispatched. This event measures the total request bandwidth.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "rnid_txreq_flits_retried", | ||
| "EventidCode": "0x7", | ||
| "NodeType": "0xa", | ||
| "BriefDescription": "Number of retried TXREQ flits dispatched. This event measures the retry rate.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "sbsx_txrsp_retryack", | ||
| "EventidCode": "0x4", | ||
| "NodeType": "0x7", | ||
| "BriefDescription": "Number of RXREQ flits dispatched. This event is a measure of the retry rate.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "sbsx_txdat_flitv", | ||
| "EventidCode": "0x5", | ||
| "NodeType": "0x7", | ||
| "BriefDescription": "Number of TXDAT flits dispatched from XP to SBSX. This event is a measure of the write bandwidth.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "sbsx_arvalid_no_arready", | ||
| "EventidCode": "0x21", | ||
| "NodeType": "0x7", | ||
| "BriefDescription": "Number of cycles the SBSX bridge is stalled because of backpressure on AR channel.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "sbsx_awvalid_no_awready", | ||
| "EventidCode": "0x22", | ||
| "NodeType": "0x7", | ||
| "BriefDescription": "Number of cycles the SBSX bridge is stalled because of backpressure on AW channel.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "sbsx_wvalid_no_wready", | ||
| "EventidCode": "0x23", | ||
| "NodeType": "0x7", | ||
| "BriefDescription": "Number of cycles the SBSX bridge is stalled because of backpressure on W channel.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hni_txrsp_retryack", | ||
| "EventidCode": "0x2a", | ||
| "NodeType": "0x4", | ||
| "BriefDescription": "Number of RXREQ flits dispatched. This event is a measure of the retry rate.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hni_arvalid_no_arready", | ||
| "EventidCode": "0x2b", | ||
| "NodeType": "0x4", | ||
| "BriefDescription": "Number of cycles the HN-I bridge is stalled because of backpressure on AR channel.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hni_arready_no_arvalid", | ||
| "EventidCode": "0x2c", | ||
| "NodeType": "0x4", | ||
| "BriefDescription": "Number of cycles the AR channel is waiting for new requests from HN-I bridge.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hni_awvalid_no_awready", | ||
| "EventidCode": "0x2d", | ||
| "NodeType": "0x4", | ||
| "BriefDescription": "Number of cycles the HN-I bridge is stalled because of backpressure on AW channel.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hni_awready_no_awvalid", | ||
| "EventidCode": "0x2e", | ||
| "NodeType": "0x4", | ||
| "BriefDescription": "Number of cycles the AW channel is waiting for new requests from HN-I bridge.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hni_wvalid_no_wready", | ||
| "EventidCode": "0x2f", | ||
| "NodeType": "0x4", | ||
| "BriefDescription": "Number of cycles the HN-I bridge is stalled because of backpressure on W channel.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "EventName": "hni_txdat_stall", | ||
| "EventidCode": "0x30", | ||
| "NodeType": "0x4", | ||
| "BriefDescription": "TXDAT valid but no link credit available.", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| [ | ||
| { | ||
| "MetricName": "slc_miss_rate", | ||
| "BriefDescription": "The system level cache miss rate.", | ||
| "MetricGroup": "cmn", | ||
| "MetricExpr": "hnf_cache_miss / hnf_slc_sf_cache_access", | ||
| "ScaleUnit": "100%", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "MetricName": "hnf_message_retry_rate", | ||
| "BriefDescription": "HN-F message retry rate indicates whether a lack of credits is causing the bottlenecks.", | ||
| "MetricGroup": "cmn", | ||
| "MetricExpr": "hnf_pocq_retry / hnf_pocq_reqs_recvd", | ||
| "ScaleUnit": "100%", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "MetricName": "sf_hit_rate", | ||
| "BriefDescription": "Snoop filter hit rate can be used to measure the snoop filter efficiency.", | ||
| "MetricGroup": "cmn", | ||
| "MetricExpr": "hnf_sf_hit / hnf_slc_sf_cache_access", | ||
| "ScaleUnit": "100%", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "MetricName": "mc_message_retry_rate", | ||
| "BriefDescription": "The memory controller request retries rate indicates whether the memory controller is the bottleneck.", | ||
| "MetricGroup": "cmn", | ||
| "MetricExpr": "hnf_mc_retries / hnf_mc_reqs", | ||
| "ScaleUnit": "100%", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "MetricName": "rni_actual_read_bandwidth.all", | ||
| "BriefDescription": "This event measure the actual bandwidth that RN-I bridge sends to the interconnect.", | ||
| "MetricGroup": "cmn", | ||
| "MetricExpr": "rnid_rxdat_flits * 32 / 1e6 / duration_time", | ||
| "ScaleUnit": "1MB/s", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "MetricName": "rni_actual_write_bandwidth.all", | ||
| "BriefDescription": "This event measures the actual write bandwidth at RN-I bridges.", | ||
| "MetricGroup": "cmn", | ||
| "MetricExpr": "rnid_txdat_flits * 32 / 1e6 / duration_time", | ||
| "ScaleUnit": "1MB/s", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "MetricName": "rni_retry_rate", | ||
| "BriefDescription": "RN-I bridge retry rate indicates whether the memory controller is the bottleneck.", | ||
| "MetricGroup": "cmn", | ||
| "MetricExpr": "rnid_txreq_flits_retried / rnid_txreq_flits_total", | ||
| "ScaleUnit": "100%", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| }, | ||
| { | ||
| "MetricName": "sbsx_actual_write_bandwidth.all", | ||
| "BriefDescription": "sbsx actual write bandwidth.", | ||
|
||
| "MetricGroup": "cmn", | ||
| "MetricExpr": "sbsx_txdat_flitv * 32 / 1e6 / duration_time", | ||
| "ScaleUnit": "1MB/s", | ||
| "Unit": "arm_cmn", | ||
| "Compat": "(434|436|43c|43a).*" | ||
| } | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar: 'This event measure' should be 'This event measures' to match subject–verb agreement.