• Bibo Mao's avatar
    perf kvm: Add kvm-stat for loongarch64 · 492ac37f
    Bibo Mao authored
    Add support for 'perf kvm stat' on loongarch64 platform, now only kvm
    exit event is supported.
    
    Here is example output about "perf kvm --host stat report" command
    
       Event name   Samples   Sample%     Time (ns)   Time%   Mean Time (ns)
        Mem Store     83969    51.00%     625697070   8.00%             7451
         Mem Read     37641    22.00%     112485730   1.00%             2988
        Interrupt     15542     9.00%      20620190   0.00%             1326
            IOCSR     15207     9.00%      94296190   1.00%             6200
        Hypercall      4873     2.00%      12265280   0.00%             2516
             Idle      3713     2.00%    6322055860  87.00%          1702681
              FPU      1819     1.00%       2750300   0.00%             1511
       Inst Fetch       502     0.00%       1341740   0.00%             2672
       Mem Modify       324     0.00%        602240   0.00%             1858
           CPUCFG        55     0.00%         77610   0.00%             1411
              CSR        12     0.00%         19690   0.00%             1640
             LASX         3     0.00%          4870   0.00%             1623
              LSX         2     0.00%          2100   0.00%             1050
    Signed-off-by: default avatarBibo Mao <maobibo@loongson.cn>
    Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
    492ac37f
header.c 1.67 KB