clock_settime03 test fails on kernel-2.6.32
Hi All,
I am facing some issues with clock_settim03 test of timers group. clock_settime03 evaluates
the error condition of clock_settime systemcall. On my machine, TEST8 & TEST9 are failing as
the expeted error is not equal to the actual error.
After analysis, I found that the TEST8 & TEST9 are trying to set CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID respectively. But from the man pages, it says that
"According to POSIX.1-2001, the CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID
clocks should be settable using clock_settime(). How-ever, the clocks
currently are not settable".
Also, in the below code snippet of ltp/testcases/kernel/timers/clock_settime/clock_settime03.c the if statement looks nothing for my kernel-2.6.32. So, the value of testcases[7] and testcases[8]
will get assigned to EFAULT but actually both of them should get set to EINVAL as the support is not
available on kernel-2.6.32.
-----------
/* PROCESS_CPUTIME_ID & THREAD_CPUTIME_ID are not supported on
* kernel versions lower than 2.6.12 and changed back in 2.6.38
*/
if ((tst_kvercmp(2, 6, 12)) < 0 || (tst_kvercmp(2, 6, 38)) >= 0) {
testcases[7] = EINVAL;
testcases[8] = EINVAL;
} else {
testcases[7] = EFAULT;
testcases[8] = EFAULT;
}------------
I would like to know from which version onwards the CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID
clocks can be set using clock_settime() so that I can generate a valid patch for this testcase.
Regards,
Ramesh
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
----- Original Message -----
Quoted 42 lines
From: "Ramesh" <[email protected]>
To: [email protected]
Sent: Monday, 30 September, 2013 8:31:52 AM
Subject: [LTP]clock_settime03test fails on kernel-2.6.32Hi All,
I am facing some issues with
clock_settim03test of timers group.clock_settime03evaluates
the error condition ofclock_settimesystemcall. On my machine, TEST8 & TEST9 are failing as
the expeted error is not equal to the actual error.After analysis, I found that the TEST8 & TEST9 are trying to set
CLOCK_PROCESS_CPUTIME_IDandCLOCK_THREAD_CPUTIME_IDrespectively. But from the man pages, it says that
"According to POSIX.1-2001, theCLOCK_PROCESS_CPUTIME_IDandCLOCK_THREAD_CPUTIME_ID
clocks should be settable usingclock_settime(). How-ever, the clocks
currently are not settable".Also, in the below code snippet of
ltp/testcases/kernel/timers/clock_settime/clock_settime03.cthe if statement looks nothing for my kernel-2.6.32. So, the value of testcases[7] and testcases[8]
will get assigned to EFAULT but actually both of them should get set to EINVAL as the support is not
available on kernel-2.6.32.-----------
/* PROCESS_CPUTIME_ID & THREAD_CPUTIME_ID are not supported on * kernel versions lower than 2.6.12 and changed back in 2.6.38 */ if ((tst_kvercmp(2, 6, 12)) < 0 || (tst_kvercmp(2, 6, 38)) >= 0) { testcases[7] = EINVAL; testcases[8] = EINVAL; } else { testcases[7] = EFAULT; testcases[8] = EFAULT; }
Quoted 6 lines
------------
I would like to know from which version onwards the
CLOCK_PROCESS_CPUTIME_IDandCLOCK_THREAD_CPUTIME_ID
clocks can be set usingclock_settime()so that I can generate a valid patch for this testcase.
Hi,
what LTP version are you running?
Can you check if it has following commit:
https://github.com/linux-test-project/ltp/commit/a2d159595a761da1626b3f489dfe9cf2c351b774
Regards,
Jan
Quoted 7 lines
Regards,
Ramesh
Quoted 11 lines
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 48 lines · Jan Stancek
----- Original Message -----
Quoted 44 lines
From: "Ramesh" <[email protected]>
To: [email protected]
Sent: Monday, 30 September, 2013 8:31:52 AM
Subject: [LTP]clock_settime03test fails on kernel-2.6.32Hi All,
I am facing some issues with
clock_settim03test of timers group.clock_settime03evaluates
the error condition ofclock_settimesystemcall. On my machine, TEST8 & TEST9 are failing as
the expeted error is not equal to the actual error.After analysis, I found that the TEST8 & TEST9 are trying to set
CLOCK_PROCESS_CPUTIME_IDandCLOCK_THREAD_CPUTIME_IDrespectively. But from the man pages, it says that
"According to POSIX.1-2001, theCLOCK_PROCESS_CPUTIME_IDandCLOCK_THREAD_CPUTIME_ID
clocks should be settable usingclock_settime(). How-ever, the clocks
currently are not settable".Also, in the below code snippet of
ltp/testcases/kernel/timers/clock_settime/clock_settime03.cthe if statement looks nothing for my kernel-2.6.32. So, the value of testcases[7] and testcases[8]
will get assigned to EFAULT but actually both of them should get set to EINVAL as the support is not
available on kernel-2.6.32.-----------
/* PROCESS_CPUTIME_ID & THREAD_CPUTIME_ID are not supported on * kernel versions lower than 2.6.12 and changed back in 2.6.38 */ if ((tst_kvercmp(2, 6, 12)) < 0 || (tst_kvercmp(2, 6, 38)) >= 0) { testcases[7] = EINVAL; testcases[8] = EINVAL; } else { testcases[7] = EFAULT; testcases[8] = EFAULT; }------------
Quoted 7 lines
Quoted 4 lines
I would like to know from which version onwards the
CLOCK_PROCESS_CPUTIME_IDandCLOCK_THREAD_CPUTIME_ID
clocks can be set usingclock_settime()so that I can generate a valid patch for this testcase.Hi,
what LTP version are you running?
I am using may-2013 version of LTP.
Thanks for pointing to the fix, its available in Sep-2013 build.
Regards,
Ramesh
Quoted 23 lines
Can you check if it has following commit:
https://github.com/linux-test-project/ltp/commit/a2d159595a761da1626b3f489dfe9cf2c351b774Regards,
JanQuoted 17 lines
Regards,
Ramesh------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list