mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-02 09:21:19 -04:00
perf vendor power9 nest metrics: Correct unit from MB to MiB
6.1e-5 is very close to 1/16384, where 16384 is 2^14, i.e. a power of 2. When units are in powers of 2 the IEC unit is MiB (mebibytes) rather than MB (megabytes) where the values are powers of 10. This patch corrects the unit for uniformity and because such units may be pattern matched against. Reviewed-by: Madhavan Srinivasan <maddy@linux.ibm.com> Signed-off-by: Ian Rogers <irogers@google.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: Kajol Jain <kjain@linux.ibm.com> Link: https://lore.kernel.org/r/20251031162637.1456191-1-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
c85eff00cf
commit
cddfb36112
@@ -29,25 +29,25 @@
|
||||
"MetricExpr" : "nest_mcs01_imc@PM_MCS01_128B_RD_DISP_PORT01@ + nest_mcs01_imc@PM_MCS01_128B_RD_DISP_PORT23@",
|
||||
"MetricName" : "mcs01-read",
|
||||
"MetricGroup" : "memory-bandwidth",
|
||||
"ScaleUnit": "6.1e-5MB"
|
||||
"ScaleUnit": "6.1e-5MiB"
|
||||
},
|
||||
{
|
||||
"MetricExpr" : "nest_mcs23_imc@PM_MCS23_128B_RD_DISP_PORT01@ + nest_mcs23_imc@PM_MCS23_128B_RD_DISP_PORT23@",
|
||||
"MetricName" : "mcs23-read",
|
||||
"MetricGroup" : "memory-bandwidth",
|
||||
"ScaleUnit": "6.1e-5MB"
|
||||
"ScaleUnit": "6.1e-5MiB"
|
||||
},
|
||||
{
|
||||
"MetricExpr" : "nest_mcs01_imc@PM_MCS01_128B_WR_DISP_PORT01@ + nest_mcs01_imc@PM_MCS01_128B_WR_DISP_PORT23@",
|
||||
"MetricName" : "mcs01-write",
|
||||
"MetricGroup" : "memory-bandwidth",
|
||||
"ScaleUnit": "6.1e-5MB"
|
||||
"ScaleUnit": "6.1e-5MiB"
|
||||
},
|
||||
{
|
||||
"MetricExpr" : "nest_mcs23_imc@PM_MCS23_128B_WR_DISP_PORT01@ + nest_mcs23_imc@PM_MCS23_128B_WR_DISP_PORT23@",
|
||||
"MetricName" : "mcs23-write",
|
||||
"MetricGroup" : "memory-bandwidth",
|
||||
"ScaleUnit": "6.1e-5MB"
|
||||
"ScaleUnit": "6.1e-5MiB"
|
||||
},
|
||||
{
|
||||
"MetricExpr" : "nest_powerbus0_imc@PM_PB_CYC@",
|
||||
|
||||
Reference in New Issue
Block a user