I'm getting failures with the sched_setparam02 and sched_setparam03 tests on
the 3.14 and 3.15 kernels in Fedora that did not happen on 3.13.  Did something
change in the upstream kernel?  Do the tests need to be updated?


3.13 passes:
===============================================================================
[root@localhost bin]# uname -r
3.13.8-200.fc20.x86_64
[root@localhost bin]# ./sched_setparam02
sched_setparam02    1  TPASS  :  Test with policy SCHED_FIFO Passed
sched_setparam02    2  TPASS  :  Test with policy SCHED_RR Passed
sched_setparam02    3  TPASS  :  Test with SCHED_OTHER Passed
[root@localhost bin]# ./sched_setparam03
sched_setparam03    1  TPASS  :  Test Passed
===============================================================================

3.14 fails:
===============================================================================
[root@localhost bin]# uname -r
3.14.9-200.fc20.x86_64
[root@localhost bin]# ./sched_setparam02
sched_setparam02    0  TWARN  :  sched_getparam() returned priority value as 0
sched_setparam02    1  TFAIL  :  Test with policy SCHED_FIFO Failed.
                   sched_setparam() returned 0: TEST_ERRNO=SUCCESS(0): Success
sched_setparam02    0  TWARN  :  sched_getparam() returned priority value as 0
sched_setparam02    2  TFAIL  :  Test with policy SCHED_RR Failed.
                   sched_setparam() returned 0: TEST_ERRNO=SUCCESS(0): Success
sched_setparam02    3  TPASS  :  Test with SCHED_OTHER Passed
[root@localhost bin]# ./sched_setparam03
sched_setparam03    0  TWARN  :  sched_getparam() returned priority value as 0
sched_setparam03    1  TFAIL  :  Test Failed
===============================================================================

3.15 also fails:
===============================================================================
[root@localhost bin]# uname -r
3.15.3-200.fc20.x86_64
[root@localhost bin]# ./sched_setparam02
sched_setparam02    0  TWARN  :  sched_getparam() returned priority value as 0
sched_setparam02    1  TFAIL  :  Test with policy SCHED_FIFO Failed.
                   sched_setparam() returned 0: TEST_ERRNO=SUCCESS(0): Success
sched_setparam02    0  TWARN  :  sched_getparam() returned priority value as 0
sched_setparam02    2  TFAIL  :  Test with policy SCHED_RR Failed.
                   sched_setparam() returned 0: TEST_ERRNO=SUCCESS(0): Success
sched_setparam02    3  TPASS  :  Test with SCHED_OTHER Passed
[root@localhost bin]# ./sched_setparam03
sched_setparam03    0  TWARN  :  sched_getparam() returned priority value as 0
sched_setparam03    1  TFAIL  :  Test Failed
===============================================================================


Running it through strace confirms that getparam is not returning the same
value that the test sets with setparam.

3.13 getparam == setparam:
===============================================================================
[root@localhost bin]# uname -r
3.13.8-200.fc20.x86_64
[root@localhost bin]# strace \
    -e trace=sched_setscheduler,sched_setparam,sched_getparam \
    ./sched_setparam02 >/dev/null
sched_setscheduler(0, SCHED_FIFO, { 1 }) = 0
sched_setparam(0, { 5 })                = 0
sched_getparam(0, { 5 })                = 0
sched_setscheduler(0, SCHED_RR, { 1 })  = 0
sched_setparam(0, { 5 })                = 0
sched_getparam(0, { 5 })                = 0
sched_setscheduler(0, SCHED_OTHER, { 0 }) = 0
sched_setparam(0, { 0 })                = 0
sched_getparam(0, { 0 })                = 0
+++ exited with 0 +++
===============================================================================

3.14 getparam != setparam:
===============================================================================
[root@localhost bin]# uname -r
3.14.9-200.fc20.x86_64
[root@localhost bin]# strace \
    -e trace=sched_setscheduler,sched_setparam,sched_getparam \
    ./sched_setparam02 >/dev/null
sched_setscheduler(0, SCHED_FIFO, { 1 }) = 0
sched_setparam(0, { 5 })                = 0
sched_getparam(0, { 0 })                = 0
sched_setscheduler(0, SCHED_RR, { 1 })  = 0
sched_setparam(0, { 5 })                = 0
sched_getparam(0, { 0 })                = 0
sched_setscheduler(0, SCHED_OTHER, { 0 }) = 0
sched_setparam(0, { 0 })                = 0
sched_getparam(0, { 0 })                = 0
+++ exited with 5 +++
===============================================================================

3.15 getparam != setparam:
===============================================================================
[root@localhost bin]# uname -r
3.15.3-200.fc20.x86_64
[root@localhost bin]# strace \
    -e trace=sched_setscheduler,sched_setparam,sched_getparam \
    ./sched_setparam02 >/dev/null
sched_setscheduler(0, SCHED_FIFO, { 1 }) = 0
sched_setparam(0, { 5 })                = 0
sched_getparam(0, { 0 })                = 0
sched_setscheduler(0, SCHED_RR, { 1 })  = 0
sched_setparam(0, { 5 })                = 0
sched_getparam(0, { 0 })                = 0
sched_setscheduler(0, SCHED_OTHER, { 0 }) = 0
sched_setparam(0, { 0 })                = 0
sched_getparam(0, { 0 })                = 0
+++ exited with 5 +++
===============================================================================

--
Jeff

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to