1*49cdfc7eSAndroid Build Coastguard WorkerEpoll Setup 2*49cdfc7eSAndroid Build Coastguard Worker 3*49cdfc7eSAndroid Build Coastguard Worker 4*49cdfc7eSAndroid Build Coastguard Worker ** Directions for glibc version of 2.3.2 or higher ** 5*49cdfc7eSAndroid Build Coastguard Worker 6*49cdfc7eSAndroid Build Coastguard WorkerEpoll support is currently implemented in glibc 2.3.2, therefore if you have a$ 7*49cdfc7eSAndroid Build Coastguard Workerglibc version of 2.3.2 or higher then do the following steps: 8*49cdfc7eSAndroid Build Coastguard Worker 9*49cdfc7eSAndroid Build Coastguard Worker1. Download and untar the epoll library from: 10*49cdfc7eSAndroid Build Coastguard Worker http://www.xmailserver.org/linux-patches/epoll-lib-0.11.tar.gz 11*49cdfc7eSAndroid Build Coastguard Worker2. Copy <epoll-lib_directory>/include/epoll.h /usr/include 12*49cdfc7eSAndroid Build Coastguard Worker3. Compile epoll-ltp.c in the <ltp_dir>testcases/kernel/syscall/epoll 13*49cdfc7eSAndroid Build Coastguard Worker 14*49cdfc7eSAndroid Build Coastguard Worker 15*49cdfc7eSAndroid Build Coastguard Worker 16*49cdfc7eSAndroid Build Coastguard Worker ** Older version of glibc ** 17*49cdfc7eSAndroid Build Coastguard WorkerTo compile the epoll-ltp successfully the following libraries are needed: 18*49cdfc7eSAndroid Build Coastguard Worker 19*49cdfc7eSAndroid Build Coastguard WorkerEpoll library http://www.xmailserver.org/linux-patches/epoll-lib-0.11.tar.gz 20*49cdfc7eSAndroid Build Coastguard WorkerPortable Coroutine Library (PCL) http://www.xmailserver.org/libpcl.html 21*49cdfc7eSAndroid Build Coastguard Worker 22*49cdfc7eSAndroid Build Coastguard Worker 23*49cdfc7eSAndroid Build Coastguard Worker1. Download and untar the PCL library 24*49cdfc7eSAndroid Build Coastguard Worker2. Run ./configure 25*49cdfc7eSAndroid Build Coastguard Worker3. Run make 26*49cdfc7eSAndroid Build Coastguard Worker4. Run make install 27*49cdfc7eSAndroid Build Coastguard Worker5. Copy <libpcl_directory>/pcl/.libs/libpcl.* /lib 28*49cdfc7eSAndroid Build Coastguard Worker6. Download and untar the epoll library 29*49cdfc7eSAndroid Build Coastguard Worker7. *You may have to modify the makefile in <epoll-lib_directory>/Makefile and <epoll-lib_directory>/examples/Makefile with the following 30*49cdfc7eSAndroid Build Coastguard Worker- KERNELDIR = kernel_directory 31*49cdfc7eSAndroid Build Coastguard Worker- #all: .depend $(TARGET) epoll-example change this line to$ 32*49cdfc7eSAndroid Build Coastguard Worker- all: .$(TARGET) epoll-example 33*49cdfc7eSAndroid Build Coastguard Worker- #include .depend comment out this line 34*49cdfc7eSAndroid Build Coastguard Worker8. Copy <epoll-lib_directory>/include/epoll.h /usr/include 35*49cdfc7eSAndroid Build Coastguard Worker9. <epoll-lib_directory> make 36*49cdfc7eSAndroid Build Coastguard Worker10. Copy <epoll-lib_directory>/lib/libepoll* /lib 37*49cdfc7eSAndroid Build Coastguard Worker11. Compile epoll-ltp.c in the <ltp_dir>testcases/kernel/syscall/epoll 38*49cdfc7eSAndroid Build Coastguard Worker 39