Bug 3244 - intel-spr平台:perf uncore PMU 功能无法正常使用
Summary: intel-spr平台:perf uncore PMU 功能无法正常使用
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-23 15:30 UTC by 苟浩
Modified: 2022-11-23 15:31 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 苟浩 uniontech_group 2022-11-23 15:30:31 UTC
intel-spr平台:perf功能无法正常使用

测试命令参考:https://gitee.com/openeuler/kernel/pulls/82

使用如下命令测试 spr uncore的perf功能,结果显示 不支持:

$ perf stat -a -e uncore_imc_0/event=0x1/ -- sleep 1

 Performance counter stats for 'system wide':

   <not supported>      uncore_imc_0/event=0x1/u                                    

       1.001104446 seconds time elapsed

正常结果如下:
# perf stat -a -e uncore_imc_0/event=0x1/ -- sleep 1

 Performance counter stats for 'system wide':

     2,407,096,566      uncore_imc_0/event=0x1/

       1.002850766 seconds time elapsed