[问题简述] 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]#
这个问题可能是因为缺少kernel-debuginfo包,安装后,可以测试再看看
(In reply to shanxifanshi from comment #1) > 这个问题可能是因为缺少kernel-debuginfo包,安装后,可以测试再看看 赞。在010版本上安装后,pass。