andikleen / pmu-tools

Intel PMU profiling tools
GNU General Public License v2.0
1.97k stars 330 forks source link

Incorrect event for IpCall metric #506

Closed aayasin closed 7 months ago

aayasin commented 7 months ago

The IpCall metric uses the PAUSE event, not the CALL event in: https://github.com/andikleen/pmu-tools/blob/346820a0a833a14e4a796482efbeec1422ab0565/spr_server_ratios.py#L375C2-L375C2

Should be like in last push for MTL: pmu-tools/mtl_rwc_ratios.py- val = EV("INST_RETIRED.ANY", level) / EV("BR_INST_RETIRED.NEAR_CALL", level)

This bug affects ADL, SPR, SPR-HBM models: pmu-tools/adl_glc_ratios.py- val = EV("INST_RETIRED.ANY", level) / EV("CPU_CLK_UNHALTED.PAUSE_INST", level) pmu-tools/bdw_client_ratios.py- val = EV("INST_RETIRED.ANY", level) / EV("BR_INST_RETIRED.NEAR_CALL", level) .. pmu-tools/mtl_rwc_ratios.py- val = EV("INST_RETIRED.ANY", level) / EV("BR_INST_RETIRED.NEAR_CALL", level) pmu-tools/spr_max_server_ratios.py- val = EV("INST_RETIRED.ANY", level) / EV("CPU_CLK_UNHALTED.PAUSE_INST", level) pmu-tools/spr_server_ratios.py- val = EV("INST_RETIRED.ANY", level) / EV("CPU_CLK_UNHALTED.PAUSE_INST", level)