• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) Linux Test Project, 2021
4  */
5 
6 #ifndef EPOLL_CREATE_H__
7 #define EPOLL_CREATE_H__
8 
9 #define EPOLL_CREATE_VARIANTS 2
10 
do_epoll_create(int size)11 static int do_epoll_create(int size)
12 {
13 	switch (tst_variant) {
14 	case 0:
15 		return tst_syscall(__NR_epoll_create, size);
16 	break;
17 	case 1:
18 		return epoll_create(size);
19 	break;
20 	}
21 
22 	return -1;
23 }
24 
variant_info(void)25 static void variant_info(void)
26 {
27 	switch (tst_variant) {
28 	case 0:
29 		tst_res(TINFO, "Testing variant: syscall __NR_epoll_create");
30 	break;
31 	case 1:
32 		tst_res(TINFO, "Testing variant: libc epoll_create()");
33 	break;
34 	}
35 }
36 
37 #endif /* EPOLL_CREATE_H__ */
38