• L
    perf c2c: Add metrics "RMT Load Hit" · 91d933c2
    Leo Yan 提交于
    The metrics "LLC Ld Miss" and "Load Dram" overlap with each other for
    accouting items:
    
      "LLC Ld Miss" = "lcl_dram" + "rmt_dram" + "rmt_hit" + "rmt_hitm"
      "Load Dram"   = "lcl_dram" + "rmt_dram"
    
    Furthermore, the metrics "LLC Ld Miss" is not directive to show
    statistics due to it contains summary value and cannot give out
    breakdown details.
    
    For this reason, add a new metrics "RMT Load Hit" which is used to
    present the remote cache hit; it contains two items:
    
      "RMT Load Hit" = remote hit ("rmt_hit") + remote hitm ("rmt_hitm")
    
    As result, the metrics "LLC Ld Miss" is perfectly divided into two
    metrics "RMT Load Hit" and "Load Dram".  It's not necessary to keep
    metrics "LLC Ld Miss", so remove it.
    
    Before:
    
      #        ----------- Cacheline ----------      Tot  ------- Load Hitm -------    Total    Total    Total  ---- Stores ----  ----- Core Load Hit -----  - LLC Load Hit --      LLC  --- Load Dram ----
      # Index             Address  Node  PA cnt     Hitm    Total  LclHitm  RmtHitm  records    Loads   Stores    L1Hit   L1Miss       FB       L1       L2    LclHit  LclHitm  Ld Miss       Lcl       Rmt
      # .....  ..................  ....  ......  .......  .......  .......  .......  .......  .......  .......  .......  .......  .......  .......  .......  ........  .......  .......  ........  ........
      #
            0      0x55f07d580100     0    1499   85.89%      481      481        0     7243     3879     3364     2599      765      548     2615       66       169      481        0         0         0
            1      0x55f07d580080     0       1   13.93%       78       78        0      664      664        0        0        0      187      361       27        11       78        0         0         0
            2      0x55f07d5800c0     0       1    0.18%        1        1        0      405      405        0        0        0      131        0       10       263        1        0         0         0
    
    After:
    
      #        ----------- Cacheline ----------      Tot  ------- Load Hitm -------    Total    Total    Total  ---- Stores ----  ----- Core Load Hit -----  - LLC Load Hit --  - RMT Load Hit --  --- Load Dram ----
      # Index             Address  Node  PA cnt     Hitm    Total  LclHitm  RmtHitm  records    Loads   Stores    L1Hit   L1Miss       FB       L1       L2    LclHit  LclHitm    RmtHit  RmtHitm       Lcl       Rmt
      # .....  ..................  ....  ......  .......  .......  .......  .......  .......  .......  .......  .......  .......  .......  .......  .......  ........  .......  ........  .......  ........  ........
      #
            0      0x55f07d580100     0    1499   85.89%      481      481        0     7243     3879     3364     2599      765      548     2615       66       169      481         0        0         0         0
            1      0x55f07d580080     0       1   13.93%       78       78        0      664      664        0        0        0      187      361       27        11       78         0        0         0         0
            2      0x55f07d5800c0     0       1    0.18%        1        1        0      405      405        0        0        0      131        0       10       263        1         0        0         0         0
    Signed-off-by: NLeo Yan <leo.yan@linaro.org>
    Tested-by: NJoe Mario <jmario@redhat.com>
    Acked-by: NJiri Olsa <jolsa@redhat.com>
    Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    Link: https://lore.kernel.org/r/20201014050921.5591-9-leo.yan@linaro.org
    91d933c2
builtin-c2c.c 69.7 KB