andikleen / pmu-tools

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

toplev: On ICL some groups do not get scheduled by kernel #429

Closed ak-intel closed 2 years ago

ak-intel commented 2 years ago

(this currently results in a test suite failure on ICL)

perf stat -x\; -e '{cpu/event=0xc0,umask=0x0/,cpu/event=0x3c,umask=0x0/,cpu/slots/,cpu/event=0x0,umask=0x3/,cpu/event=0x32,umask=0x2/u,cpu/event=0xc6,umask=0x1,frontend=0x1/,cpu/event=0xc5,umask=0x0/,cpu/event=0xd1,umask=0x8/,cpu/event=0x24,umask=0xe1/,cpu/event=0xd1,umask=0x10/,cpu/event=0x24,umask=0x21/}' true

;;cpu/event=0xc0,umask=0x0/;0;100.00;; ;;cpu/event=0x3c,umask=0x0/;0;100.00;; ;;cpu/slots/;0;100.00;; ;;cpu/event=0x0,umask=0x3/;0;100.00;; ;;cpu/event=0x32,umask=0x2/u;0;100.00;; ;;cpu/event=0xc6,umask=0x1,frontend=0x1/;0;100.00;; ;;cpu/event=0xc5,umask=0x0/;0;100.00;; ;;cpu/event=0xd1,umask=0x8/;0;100.00;; ;;cpu/event=0x24,umask=0xe1/;0;100.00;; ;;cpu/event=0xd1,umask=0x10/;0;100.00;; ;;cpu/event=0x24,umask=0x21/;0;100.00;; Removing the last event makes it schedule. The group was generated by toplev and when I check it manually it should be schedulable. NMI watchdog is off. INST_RETIRED.ANY 0x00 0x01 Fixed counter 0 CPU_CLK_UNHALTED.THREAD 0x00 0x02 Fixed counter 1 TOPDOWN.SLOTS 0x00 0x04 Fixed counter 3 CPU_CLK_UNHALTED.REF_TSC 0x00 0x03 Fixed counter 2 FRONTEND_RETIRED.ANY_DSB_MISS 0xc6 0x01 0,1,2,3,4,5,6,7 BR_MISP_RETIRED.ALL_BRANCHES 0xc5 0x00 0,1,2,3,4,5,6,7 MEM_LOAD_RETIRED.L1_MISS 0xd1 0x08 0,1,2,3 L2_RQSTS.ALL_DEMAND_DATA_RD 0x24 0xE1 0,1,2,3 MEM_LOAD_RETIRED.L2_MISS 0xd1 0x10 0,1,2,3 L2_RQSTS.DEMAND_DATA_RD_MISS 0x24 0x21 0,1,2,3