This task is identified by as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
The perf tool displays an event list for each Hip09 PMU, which is simplified to display an event list for each type of PMU.
Perf stat usage has also been extended:
The user can directly specify the event without specifying the PMU device, so as to realize the statistics of the number of occurrences of a certain event within a certain period of time for all PMUs on the server.
The user can specify the metric at the same time to realize the statistics of two related events and process the collected results.
For example, if the user wants to obtain the port bandwidth of port1, he can obtain it by collecting metrics.
perf stat -M -e cpa_bw_p0
[Testing]
kernel config
CONFIG_HISI_PMU=m
tools: perf
[test log]
[hejunhao@localhost kernel]$ git log --oneline
d5bf1893e12d{topost} perfjevents: Add support for HiSilicon PA PMU aliasing
ba06880f79b0{topost} perf jevents:Add support for HiSilicon SLLC PMU aliasing
c9cf1a7ee0ec{topost} perf jevents: Add support for HiSilicon HHA PMU aliasing
99391ec1bc64{topost} perfjevents: Add support for HiSilicon DDRC PMU aliasing
0ce670673a2e{topost} perf jevents: Add support for HiSilicon L3C PMU aliasing
The perf tool displays an event list for each Hip09 PMU, which is simplified to display an event list for each type of PMU.
Perf stat usage has alsobeen extended:
The user can directly specifythe event without specifying the PMU device, so as to realize the statistics of the number of occurrences of a certain event within a certain period of time for all PMUs on the server.
Theuser can specifythe metric at the sametime to realize the statistics of two related events and process the collected results.
For example, if the userwantsto obtain the port bandwidth of port1, he can obtain it by collecting metrics.
perf stat -M-ecpa_bw_p0
[Testing]
kernel config
CONFIG_HISI_PMU=m
tools: perf
[test log]
[hejunhao@localhost kernel]$ git log --oneline
d5bf1893e12d {topost} perf jevents: Add support for HiSilicon PA PMU aliasing
ba06880f79b0 {topost} perf jevents: Add support for HiSilicon SLLC PMU aliasing
c9cf1a7ee0ec {topost} perf jevents: Add support for HiSilicon HHA PMU aliasing
99391ec1bc64 {topost} perf jevents: Add support for HiSilicon DDRC PMU aliasing
0ce670673a2e {topost} perf jevents: Add support for HiSilicon L3C PMU aliasing
a074785640ff perf test: Add pmu-events test for aliases of hip09 ddrc pmu