openeuler-riscv / oerv-team

OERV 实习生工作中心
8 stars 39 forks source link

LTP: 调研sched_setparam失败问题 #774

Open laokz opened 5 months ago

laokz commented 5 months ago

https://github.com/openEuler-RISCV/QA/tree/main/testreport/24.03/round1/performance-test/ltp_function

<<<test_start>>>
tag=sched_setparam02 stime=1714359195
cmdline="sched_setparam02"
contacts=""
analysis=exit
<<<test_output>>>
tst_test.c:1709: TINFO: LTP version: v2023.12.28-23-g951e1376b
tst_test.c:1593: TINFO: Timeout per run is 0h 00m 30s
sched_setparam02.c:59: TINFO: Testing libc variant
sched_setparam02.c:41: TFAIL: tv->sched_setscheduler(0, tc->policy, &p) failed: EPERM (1)
sched_setparam02.c:44: TFAIL: tv->sched_setparam(0, &p) failed: EINVAL (22)
sched_setparam02.c:52: TFAIL: unexpected priority value 0, expected 5
sched_setparam02.c:41: TFAIL: tv->sched_setscheduler(0, tc->policy, &p) failed: EPERM (1)
sched_setparam02.c:44: TFAIL: tv->sched_setparam(0, &p) failed: EINVAL (22)
sched_setparam02.c:52: TFAIL: unexpected priority value 0, expected 5
sched_setparam02.c:50: TPASS: got expected priority 0
sched_setparam02.c:59: TINFO: Testing syscall variant
sched_setparam02.c:41: TFAIL: tv->sched_setscheduler(0, tc->policy, &p) failed: EPERM (1)
sched_setparam02.c:44: TFAIL: tv->sched_setparam(0, &p) failed: EINVAL (22)
sched_setparam02.c:52: TFAIL: unexpected priority value 0, expected 5
sched_setparam02.c:41: TFAIL: tv->sched_setscheduler(0, tc->policy, &p) failed: EPERM (1)
sched_setparam02.c:44: TFAIL: tv->sched_setparam(0, &p) failed: EINVAL (22)
sched_setparam02.c:52: TFAIL: unexpected priority value 0, expected 5
sched_setparam02.c:50: TPASS: got expected priority 0
<<<test_start>>>
tag=sched_setparam03 stime=1714359195
cmdline="sched_setparam03"
contacts=""
analysis=exit
<<<test_output>>>
tst_test.c:1709: TINFO: LTP version: v2023.12.28-23-g951e1376b
tst_test.c:1593: TINFO: Timeout per run is 0h 00m 30s
sched_setparam03.c:49: TINFO: Testing libc variant
sched_setparam03.c:52: TBROK: sched_setscheduler(0, SCHED_FIFO, 1): EPERM (1)
laokz commented 4 months ago

复测通过,测试环境同irqbalance

<<<test_start>>>                                                                                                                                                              11:36:25 [13/1597]
tag=sched_setparam02__with_dmesg_entry stime=1716176185                                                                                                                                         
cmdline="dmesg -c 1>/dev/null 2>&1; sched_setparam02; EXIT_CODE=$?; dmesg > /opt/ltp/output/output-dmesg-output-45868-11:36:17AM/sched_setparam02.dmesg.log; exit $EXIT_CODE"                   
contacts=""                                                                                                                                                                                     
analysis=exit                                                                                                                                                                                   
<<<test_output>>>                                                                                                                                                                               
incrementing stop                                                                                                                                                                               
tst_test.c:1730: TINFO: LTP version: 20240129-279-ge644691d3                                                                                                                                    
tst_test.c:1614: TINFO: Timeout per run is 0h 05m 00s                                                                                                                                           
sched_setparam02.c:59: TINFO: Testing libc variant                                                                                                                                              
sched_setparam02.c:50: TPASS: got expected priority 5                                                                                                                                           
sched_setparam02.c:50: TPASS: got expected priority 5                                                                                                                                           
sched_setparam02.c:50: TPASS: got expected priority 0                                                                                                                                           
sched_setparam02.c:59: TINFO: Testing syscall variant                                                                                                                                           
sched_setparam02.c:50: TPASS: got expected priority 5
sched_setparam02.c:50: TPASS: got expected priority 5
sched_setparam02.c:50: TPASS: got expected priority 0

Summary:
passed   6
failed   0
broken   0
skipped  0
warnings 0

<<<test_start>>>                     
tag=sched_setparam03 stime=1716176346
cmdline="sched_setparam03"
contacts=""                                                                                     
analysis=exit
<<<test_output>>>                    
incrementing stop                                                                               
tst_test.c:1730: TINFO: LTP version: 20240129-279-ge644691d3          
tst_test.c:1614: TINFO: Timeout per run is 0h 05m 00s
sched_setparam03.c:49: TINFO: Testing libc variant
sched_setparam03.c:39: TPASS: got expected priority 5
sched_setparam03.c:49: TINFO: Testing syscall variant
sched_setparam03.c:39: TPASS: got expected priority 5

Summary:
passed   2
failed   0
broken   0
skipped  0
warnings 0