Bug 19049 - [ANCK6.6.71-3 rc1][aarch64][倚天710机器][perf-sanity-tests/Setup_struct_perf_event_attr]设置perf_event_attr时,实际值与预期值不符
Summary: [ANCK6.6.71-3 rc1][aarch64][倚天710机器][perf-sanity-tests/Setup_struct_perf_even...
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: aarch64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yuki_syq
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-25 11:24 UTC by zhixin01
Modified: 2025-05-16 16:58 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhixin01 alibaba_cloud_group 2025-02-25 11:24:26 UTC
[缺陷描述]:
倚天710机器,perf-sanity-tests测试,Setup_struct_perf_event_attr用例失败,设置perf_event_attr时,实际值与预期值不符

ali5000 011版本这个用例是pass的

测试日志如下:
#perf test -v 17
 17: Setup struct perf_event_attr                                    :
--- start ---
test child forked, pid 1098024
Using CPUID 0x00000000410fd490
running '/usr/libexec/perf-core/tests/attr/test-record-branch-filter-ind_call'
unsupp  '/usr/libexec/perf-core/tests/attr/test-record-branch-filter-ind_call'
running '/usr/libexec/perf-core/tests/attr/test-record-period'
running '/usr/libexec/perf-core/tests/attr/test-record-basic'
running '/usr/libexec/perf-core/tests/attr/test-record-count'
running '/usr/libexec/perf-core/tests/attr/test-record-graph-fp-aarch64'
test limitation 'aarch64'
running '/usr/libexec/perf-core/tests/attr/test-record-no-inherit'
running '/usr/libexec/perf-core/tests/attr/test-record-group2'
running '/usr/libexec/perf-core/tests/attr/test-record-branch-any'
unsupp  '/usr/libexec/perf-core/tests/attr/test-record-branch-any'
running '/usr/libexec/perf-core/tests/attr/test-record-user-regs-no-sve-aarch64'
test limitation 'aarch64'
skipped [auxv skip] '/usr/libexec/perf-core/tests/attr/test-record-user-regs-no-sve-aarch64'
running '/usr/libexec/perf-core/tests/attr/test-stat-detailed-1'
expected type=12, got 3
expected config=59, got 65538
expected read_format=15, got 3
FAILED '/usr/libexec/perf-core/tests/attr/test-stat-detailed-1' - match failure
test child finished with -1
---- end ----
Setup struct perf_event_attr: FAILED!

[重现概率]:
必现

[重现环境]:
环境信息:倚天710机器
11.163.178.238

#uname -r
6.6.71-3_rc1.al8.aarch64

#cat /etc/os-release
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="10"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

#lscpu
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              128
On-line CPU(s) list: 0-127
Thread(s) per core:  1
Core(s) per socket:  128
Socket(s):           1
NUMA node(s):        2
Vendor ID:           ARM
BIOS Vendor ID:      T-HEAD
Model:               0
Model name:          Neoverse-N2
BIOS Model name:     Yitian710-128
Stepping:            r0p0
CPU MHz:             2750.000
BogoMIPS:            100.00
Hypervisor vendor:   Alibaba
Virtualization type: full
L1d cache:           64K
L1i cache:           64K
L2 cache:            1024K
L3 cache:            65536K
NUMA node0 CPU(s):   0-63
NUMA node1 CPU(s):   64-127
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh

#free -h
              total        used        free      shared  buff/cache   available
Mem:          125Gi       3.6Gi       121Gi        12Mi       1.0Gi       122Gi
Swap:         2.0Gi          0B       2.0Gi

#cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-6.6.71-3_rc1.al8.aarch64 root=UUID=d0af582f-7147-41de-85e3-deb2e14cde99 ro biosdevname=0 rd.driver.pre=ahci iommu.passthrough=1 iommu.strict=0 nospectre_bhb ssbd=force-off systemd.unified_cgroup_hierarchy=0 cgroup.memory=nokmem console=ttyS0,115200 fsck.repair=yes crashkernel=0M-2G:0M,2G-256G:256M,256G-1024G:320M,1024G-:384M

#ldd --version
ldd (GNU libc) 2.32
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

#rpm -qa |grep perf
iperf3-3.9-13.al8.1.aarch64
python3-perf-6.6.71-3_rc1.al8.aarch64
gperf-3.1-5.1.al8.aarch64
perf-6.6.71-3_rc1.al8.aarch64

[重现步骤]:
#安装随内核发布的perf包
https://koji.alibaba-inc.com/taskinfo?taskID=730244

# 执行测试
perf test -v 17

[期望结果]:
用例执行PASS

[实际结果]:
用例执行Fail
Comment 1 yuki_syq alibaba_cloud_group 2025-03-04 20:34:09 UTC
ali6000-001的已知问题
Comment 2 yunhe123 alibaba_cloud_group 2025-05-16 16:58:33 UTC
6.6.71-3.102_rc1.3.al8.x86_64内核上也存在该问题:


#perf test -v 17
 17: Setup struct perf_event_attr                                    :
--- start ---
test child forked, pid 332294
Using CPUID GenuineIntel-6-8F-8
running '/usr/libexec/perf-core/tests/attr/test-record-branch-filter-ind_call'
running '/usr/libexec/perf-core/tests/attr/test-record-dummy-C0'
running '/usr/libexec/perf-core/tests/attr/test-record-graph-default-aarch64'
test limitation 'aarch64'
skipped [x86_64] '/usr/libexec/perf-core/tests/attr/test-record-graph-default-aarch64'
running '/usr/libexec/perf-core/tests/attr/test-record-C0'
running '/usr/libexec/perf-core/tests/attr/test-record-user-regs-sve-aarch64'
test limitation 'aarch64'
skipped [x86_64] '/usr/libexec/perf-core/tests/attr/test-record-user-regs-sve-aarch64'
running '/usr/libexec/perf-core/tests/attr/test-record-branch-filter-hv'
running '/usr/libexec/perf-core/tests/attr/test-record-group2'
running '/usr/libexec/perf-core/tests/attr/test-record-spe-physical-address'
test limitation 'aarch64'
skipped [x86_64] '/usr/libexec/perf-core/tests/attr/test-record-spe-physical-address'
running '/usr/libexec/perf-core/tests/attr/test-stat-detailed-1'
expected type=4, got 3
expected config=4269, got 65538
FAILED '/usr/libexec/perf-core/tests/attr/test-stat-detailed-1' - match failure
test child finished with -1
---- end ----
Setup struct perf_event_attr: FAILED!