Bug 3776 - [Anolis8][ck-4.19][aarch64][nightly] ltp测试套syscalls/perf_event_open02报错perf_event_open02.c:278: TBROK: sched_setscheduler(0, SCHED_FIFO, ...) failed: EPERM (1)
Summary: [Anolis8][ck-4.19][aarch64][nightly] ltp测试套syscalls/perf_event_open02报错perf_e...
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: kernel - anck-4.19 (show other bugs) kernel - anck-4.19
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: shuancue
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-16 16:32 UTC by anolislw
Modified: 2023-06-07 15:19 UTC (History)
1 user (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 2023-01-16 16:32:09 UTC
Description of problem:
Anolis8] ck-4.19 aarch64 nightly,ltp测试套syscalls/perf_event_open02报错perf_event_open02.c:278: TBROK: sched_setscheduler(0, SCHED_FIFO, ...) failed: EPERM (1)

Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.git clone https://gitee.com/anolis/ltp.git --branch anck-4.19
2.cd ltp;export CFLAGS+="-fcommon";make autotools;./configure
3.make && make install
4 cd /opt/ltp;./runltp  -f syscalls -s perf_event_open02

Actual resulRunning tests.......
<<<test_start>>>
tag=perf_event_open02 stime=1673857542
cmdline="perf_event_open02"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
tst_test.c:1560: TINFO: Timeout per run is 0h 01m 42s
perf_event_open02.c:103: TINFO: bench_work estimated loops = 8769 in 500 ms
perf_event_open02.c:150: TINFO: [0] value:3508226296 time_enabled:445250960 time_running:445250960
perf_event_open02.c:150: TINFO: [1] value:3508184034 time_enabled:445285000 time_running:445285000
perf_event_open02.c:150: TINFO: [2] value:3508162709 time_enabled:445378520 time_running:445378520
perf_event_open02.c:150: TINFO: [3] value:3513976063 time_enabled:448754880 time_running:448754880
perf_event_open02.c:150: TINFO: [4] value:3508172279 time_enabled:446641360 time_running:446641360
perf_event_open02.c:150: TINFO: [5] value:3508174551 time_enabled:446319240 time_running:446319240
perf_event_open02.c:150: TINFO: [6] value:3022204344 time_enabled:462052680 time_running:398048800
perf_event_open02.c:278: TBROK: sched_setscheduler(0, SCHED_FIFO, ...) failed: EPERM (1)

Summary:
passed   0
failed   0
broken   1
skipped  0
warnings 0
<<<execution_status>>>
initiation_status="ok"
duration=7 termination_type=exited termination_id=2 corefile=no
cutime=694 cstime=0
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: 20220930

       ###############################################################

            Done executing testcases.
            LTP Version:  20220930
       ###############################################################
ts:


Expected results:
case pass

Additional info:
[root@qibo-anolis8-nightly-func-arm-2 ltp]# uname -r
4.19.91-276.git.c452e2d70d27.an8.aarch64
[root@qibo-anolis8-nightly-func-arm-2 ltp]# cat /etc/anolis-release
Anolis OS release 8.6
[root@qibo-anolis8-nightly-func-arm-2 ltp]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.5G  4.0K  7.5G   1% /dev
tmpfs           7.5G     0  7.5G   0% /dev/shm
tmpfs           7.5G  856K  7.5G   1% /run
tmpfs           7.5G     0  7.5G   0% /sys/fs/cgroup
/dev/vda2        39G   29G  8.9G  76% /
/dev/vda1       500M  6.8M  494M   2% /boot/efi
tmpfs           1.5G     0  1.5G   0% /run/user/0
[root@qibo-anolis8-nightly-func-arm-2 ltp]# free -g
              total        used        free      shared  buff/cache   available
Mem:             14           0          13           0           0          14
Swap:             0           0           0
[root@qibo-anolis8-nightly-func-arm-2 ltp]# cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-4.19.91-276.git.c452e2d70d27.an8.aarch64 root=UUID=69f901e7-05b1-40ca-bff0-947d6f410fe7 ro 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 crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
[root@qibo-anolis8-nightly-func-arm-2 ltp]# lscpu
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per cluster: 4
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-3
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
[root@qibo-anolis8-nightly-func-arm-2 ltp]#
Comment 1 Banana alibaba_cloud_group 2023-06-07 15:19:54 UTC
Anolis23 5.10 nightly arm环境有相同问题

[内核信息]:
[root@qibo-anolis23-nightly-func-arm-1 ~]# uname -r
5.10.134-125.git.21e574ab8b57.an23.aarch64


[操作系统信息]:
[root@qibo-anolis23-nightly-func-arm-1 ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

<<<test_start>>>
tag=perf_event_open02 stime=1686092299
cmdline="perf_event_open02"
contacts=""
analysis=exit
<<<test_output>>>
tst_test.c:1558: TINFO: Timeout per run is 0h 01m 42s
perf_event_open02.c:103: TINFO: bench_work estimated loops = 12831 in 500 ms
perf_event_open02.c:148: TINFO: [0] value:3850050110 time_enabled:484872000 time_running:484872000
perf_event_open02.c:148: TINFO: [1] value:3850080878 time_enabled:484680200 time_running:484680200
perf_event_open02.c:148: TINFO: [2] value:3849994872 time_enabled:507610520 time_running:507610520
perf_event_open02.c:148: TINFO: [3] value:3849956573 time_enabled:508668040 time_running:508668040
perf_event_open02.c:148: TINFO: [4] value:3850036220 time_enabled:510815640 time_running:510815640
perf_event_open02.c:148: TINFO: [5] value:3849934243 time_enabled:485103880 time_running:485103880
perf_event_open02.c:148: TINFO: [6] value:3297423511 time_enabled:523889360 time_running:448245840
perf_event_open02.c:277: TBROK: sched_setscheduler(0, SCHED_FIFO, ...) failed: EPERM (1)

Summary:
passed   0
failed   0
broken   1
skipped  0
warnings 0
<<<execution_status>>>
initiation_status="ok"
duration=7 termination_type=exited termination_id=2 corefile=no
cutime=740 cstime=1
<<<test_end>>>