Bug 2021 - [ANCK-5.10 2208][Anolis8.6][aarch64] perf-sanity-tests测试:Failed to find the path for the kernel: Invalid ELF file
Summary: [ANCK-5.10 2208][Anolis8.6][aarch64] perf-sanity-tests测试:Failed to find the p...
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: kernel - anck-5.10 (show other bugs) kernel - anck-5.10
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: maqiao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-31 18:34 UTC by anolislw
Modified: 2024-05-30 14:34 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anolislw alibaba_cloud_group 2022-08-31 18:34:58 UTC
[问题简述]
ECS anolis8.6 aarch64环境下,安装5.10.134-12_rc3.an8.aarch64相关内核后,运行perf-sanity-tests测试:Failed to find the path for the kernel: Invalid ELF file

相关的case有:
72: Use vfs_getname probe to get syscall args filenames             : FAILED!
76: Add vfs_getname probe to get syscall args filenames             : FAILED!
77: Check open filename arg using perf trace + vfs_getname          : FAILED!

[期望结果]
case run pass

[实际结果]
[root@anck5 tone]# perf test -v 72
72: Use vfs_getname probe to get syscall args filenames             :
--- start ---
test child forked, pid 9178
Failed to find the path for the kernel: Invalid ELF file
  Error: Failed to add events.
test child finished with -1
---- end ----
Use vfs_getname probe to get syscall args filenames: FAILED!
[root@anck5 tone]#

[测试环境]
[root@anck5 tone]# gcc --version
gcc (GCC) 8.5.0 20210514 (Anolis 8.5.0-10.0.1)
Copyright (C) 2018 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.

[root@anck5 tone]#
[root@anck5 tone]# uname -r
5.10.134-12_rc4.an8.aarch64
[root@anck5 tone]# cat /etc/redhat-release
Anolis OS release 8.6
[root@anck5 tone]# rpm -q glibc
glibc-2.28-189.5.0.1.an8_6.aarch64
[root@anck5 tone]# cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-5.10.134-12_rc4.an8.aarch64 root=UUID=4422fd68-c59c-4f57-a4fd-f29195b180a7 ro crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet console=tty0 biosdevname=0 net.ifnames=0 console=ttyAMA0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295
[root@anck5 tone]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.7G     0  3.7G   0% /dev
tmpfs           3.7G     0  3.7G   0% /dev/shm
tmpfs           3.7G  584K  3.7G   1% /run
tmpfs           3.7G     0  3.7G   0% /sys/fs/cgroup
/dev/vda2        39G   31G  6.2G  84% /
/dev/vda1       500M  6.8M  494M   2% /boot/efi
tmpfs           758M     0  758M   0% /run/user/0
[root@anck5 tone]# free -g
              total        used        free      shared  buff/cache   available
Mem:              7           0           5           0           1           7
Swap:             0           0           0
[root@anck5 tone]# lscpu
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              2
On-line CPU(s) list: 0,1
Thread(s) per core:  1
Core(s) per cluster: 2
Socket(s):           1
Cluster(s):          1
NUMA node(s):        1
Vendor ID:           ARM
BIOS Vendor ID:      Alibaba Cloud
Model:               1
Model name:          Neoverse-N1
BIOS Model name:     virt-rhel7.6.0
Stepping:            r3p1
BogoMIPS:            50.00
NUMA node0 CPU(s):   0,1
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
[root@anck5 tone]#
Comment 1 shanxifanshi alibaba_cloud_group 2024-01-31 10:52:42 UTC
这个问题可能是因为缺少kernel-debuginfo包,安装后,可以测试再看看
Comment 2 wanqian alibaba_cloud_group 2024-05-30 14:34:32 UTC
(In reply to shanxifanshi from comment #1)
> 这个问题可能是因为缺少kernel-debuginfo包,安装后,可以测试再看看
赞。在010版本上安装后,pass。