On Mon, 2008-07-28 at 23:22 +0530, Vijay Kumar wrote: > Hi Subrata and Michael, > > I have include a patch for the basic eventfd() testcases. I am working > on the counter overflow and exec() related test cases suggested by > Michael. And since Michael wanted an early version, I am including the > patch. > > BTW, the eventfd() syscall needs glibc 2.8. But the library itself > does not do much. So it is not really necessary to force the user to > install glibc 2.8 to test eventfd. I have directly invoked the syscall > using syscall(). For the syscall numbers, I have modified the .in > files under testcases/kernel/include. I am not sure if this is the > right approach. Please do send in your comments. > > Signed-off-by: Vijay Kumar B. <[EMAIL PROTECTED]>
Thanks Vijay for sending the patch. Please see below the results and my comments for the same: patching file testcases/kernel/syscalls/eventfd/Makefile patching file testcases/kernel/syscalls/eventfd/eventfd01.c patching file testcases/kernel/include/i386.in Hunk #1 succeeded at 22 with fuzz 2 (offset 1 line). patching file testcases/kernel/include/ia64.in Hunk #1 FAILED at 16. 1 out of 1 hunk FAILED -- saving rejects to file testcases/kernel/include/ia64.in.rej patching file testcases/kernel/include/stub-list patching file testcases/kernel/include/x86_64.in Hunk #1 succeeded at 22 with fuzz 2 (offset 1 line). patching file testcases/kernel/include/powerpc.in patching file testcases/kernel/include/powerpc64.in patching file testcases/kernel/include/s390.in patching file testcases/kernel/include/s390x.in patching file testcases/kernel/include/sparc.in patching file testcases/kernel/include/sparc64.in patching file runtest/syscalls 1) Linux 2.6.9-74.EL #1 Tue Jun 17 16:42:36 EDT 2008 i686 athlon i386 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass with warning below: eventfd01 1 CONF : 2.6.22 or greater kernel required eventfd01 1 BROK : error creating eventfd: Function not implemented eventfd01 2 BROK : Remaining cases broken eventfd01 3 BROK : Remaining cases broken eventfd01 4 BROK : Remaining cases broken eventfd01 5 BROK : Remaining cases broken eventfd01 6 BROK : Remaining cases broken eventfd01 7 BROK : Remaining cases broken eventfd01 8 BROK : Remaining cases broken eventfd01 9 BROK : Remaining cases broken eventfd01 10 BROK : Remaining cases broken eventfd01 11 BROK : Remaining cases broken eventfd01 12 BROK : Remaining cases broken 2) Linux 2.6.18-91.el5 #1 SMP Tue Apr 22 17:43:57 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass with warning above: 3) Linux 2.6.9-22.EL #1 SMP Mon Sep 19 17:52:20 EDT 2005 ppc64 ppc64 ppc64 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass with warning above: 4) Linux 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:28:55 EDT 2005 i686 i686 i386 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass with warning above: 5) Linux 2.6.18-91.el5 #1 SMP Tue Apr 22 17:48:59 EDT 2008 ppc64 ppc64 ppc64 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass with warning above: 6) Linux 2.6.18-91.el5PAE #1 SMP Tue Apr 22 17:58:37 EDT 2008 i686 athlon i386 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass with warning above: 7) Linux 2.6.25-gcov-nomodconfig-smp #1 SMP Thu Jun 12 06:29:27 EDT 2008 i686 i686 i386 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass, eventfd01 1 PASS : counter value matches required eventfd01 2 PASS : read failed with EAGAIN as expected eventfd01 3 PASS : counter value matches required eventfd01 4 PASS : write failed with EAGAIN as expected eventfd01 5 PASS : read failed with EINVAL as expected eventfd01 6 PASS : write failed with EINVAL as expected eventfd01 7 PASS : write failed with EINVAL as expected eventfd01 8 PASS : fd is set in readfds eventfd01 9 PASS : fd is not set in readfds eventfd01 10 PASS : fd is set in writefds eventfd01 11 PASS : fd is not set in writefds eventfd01 12 PASS : counter value write from child successful My observations/comments: 1) Get the latest source for the next patch. Some gave hunk failures, 2) Build, Install and Run is handled properly across all architectures and kernel versions. Go ahead and send the updated patch. I will merge them in increments. You can then go ahead and add more in the same category. Regards-- Subrata ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
