Home
last modified time | relevance | path

Searched refs:fntype (Results 1 – 17 of 17) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/futex/
Dfutextest.h71 enum futex_fn_type fntype; member
77 static inline void futex_supported_by_kernel(enum futex_fn_type fntype) in futex_supported_by_kernel() argument
79 if (fntype != FUTEX_FN_FUTEX64) in futex_supported_by_kernel()
109 static inline int futex_syscall(enum futex_fn_type fntype, futex_t *uaddr, in futex_syscall() argument
115 if (fntype == FUTEX_FN_FUTEX) in futex_syscall()
128 futex_wait(enum futex_fn_type fntype, futex_t *uaddr, futex_t val, in futex_wait() argument
131 return futex_syscall(fntype, uaddr, FUTEX_WAIT, val, in futex_wait()
140 futex_wake(enum futex_fn_type fntype, futex_t *uaddr, int nr_wake, int opflags) in futex_wake() argument
142 return futex_syscall(fntype, uaddr, FUTEX_WAKE, nr_wake, NULL, NULL, 0, in futex_wake()
151 futex_wait_bitset(enum futex_fn_type fntype, futex_t *uaddr, futex_t val, in futex_wait_bitset() argument
[all …]
Dfutex_wake04.c41 …{ .fntype = FUTEX_FN_FUTEX, .tstype = TST_KERN_OLD_TIMESPEC, .desc = "syscall with old kernel spec…
45 …{ .fntype = FUTEX_FN_FUTEX64, .tstype = TST_KERN_TIMESPEC, .desc = "syscall time64 with kernel spe…
57 futex_supported_by_kernel(tv->fntype); in setup()
66 futex_wait(tv->fntype, futex1, *futex1, &to, 0); in wait_thread1()
77 res = futex_wait(tv->fntype, futex2, *futex2, &to, 0); in wait_thread2()
123 futex_wake(tv->fntype, futex2, 1, 0); in wakeup_thread2()
125 futex_wake(tv->fntype, futex1, 1, 0); in wakeup_thread2()
Dfutex_wake03.c18 { .fntype = FUTEX_FN_FUTEX, .desc = "syscall with old kernel spec"},
22 { .fntype = FUTEX_FN_FUTEX64, .desc = "syscall time64 with kernel spec"},
30 futex_wait(tv->fntype, futex, *futex, NULL, 0); in do_child()
39 TEST(futex_wake(tv->fntype, futex, nr_children, 0)); in do_wake()
83 TEST(futex_wake(tv->fntype, futex, 1, 0)); in run()
98 futex_supported_by_kernel(tv->fntype); in setup()
Dfutex_wake02.c20 { .fntype = FUTEX_FN_FUTEX, .desc = "syscall with old kernel spec"},
24 { .fntype = FUTEX_FN_FUTEX64, .desc = "syscall time64 with kernel spec"},
54 futex_wait(tv->fntype, &futex, futex, NULL, FUTEX_PRIVATE_FLAG); in threaded()
75 TEST(futex_wake(tv->fntype, &futex, i, FUTEX_PRIVATE_FLAG)); in do_child()
98 TEST(futex_wake(tv->fntype, &futex, 1, FUTEX_PRIVATE_FLAG)); in do_child()
135 futex_supported_by_kernel(tv->fntype); in setup()
Dfutex_wait03.c18 { .fntype = FUTEX_FN_FUTEX, .desc = "syscall with old kernel spec"},
22 { .fntype = FUTEX_FN_FUTEX64, .desc = "syscall time64 with kernel spec"},
33 ret = futex_wake(tv->fntype, &futex, 1, FUTEX_PRIVATE_FLAG); in threaded()
48 res = futex_wait(tv->fntype, &futex, futex, NULL, FUTEX_PRIVATE_FLAG); in run()
64 futex_supported_by_kernel(tv->fntype); in setup()
Dfutex_wait02.c20 { .fntype = FUTEX_FN_FUTEX, .desc = "syscall with old kernel spec"},
24 { .fntype = FUTEX_FN_FUTEX64, .desc = "syscall time64 with kernel spec"},
35 ret = futex_wake(tv->fntype, futex, 1, 0); in do_child()
52 res = futex_wait(tv->fntype, futex, *futex, NULL, 0); in run()
67 futex_supported_by_kernel(tv->fntype); in setup()
Dfutex_cmp_requeue01.c47 …{ .fntype = FUTEX_FN_FUTEX, .tstype = TST_KERN_OLD_TIMESPEC, .desc = "syscall with old kernel spec…
51 …{ .fntype = FUTEX_FN_FUTEX64, .tstype = TST_KERN_TIMESPEC, .desc = "syscall time64 with kernel spe…
63 if (futex_wait(tv->fntype, &sd->futexes[0], sd->futexes[0], &usec, 0) == -1) { in do_child()
119 TEST(futex_cmp_requeue(tv->fntype, &sd->futexes[0], sd->futexes[0], in verify_futex_cmp_requeue()
130 num_requeues = futex_wake(tv->fntype, &sd->futexes[1], tc->num_waiters, 0); in verify_futex_cmp_requeue()
131 num_waits = futex_wake(tv->fntype, &sd->futexes[0], tc->num_waiters, 0); in verify_futex_cmp_requeue()
196 futex_supported_by_kernel(tv->fntype); in setup()
Dfutex_wait04.c18 …{ .fntype = FUTEX_FN_FUTEX, .tstype = TST_KERN_OLD_TIMESPEC, .desc = "syscall with old kernel spec…
22 …{ .fntype = FUTEX_FN_FUTEX64, .tstype = TST_KERN_TIMESPEC, .desc = "syscall time64 with kernel spe…
37 res = futex_wait(tv->fntype, buf, 1, &to, 0); in run()
51 futex_supported_by_kernel(tv->fntype); in setup()
Dfutex_wake01.c32 { .fntype = FUTEX_FN_FUTEX, .desc = "syscall with old kernel spec"},
36 { .fntype = FUTEX_FN_FUTEX64, .desc = "syscall time64 with kernel spec"},
46 res = futex_wake(tv->fntype, tc->f_addr, tc->nr_wake, tc->opflags); in run()
60 futex_supported_by_kernel(tv->fntype); in setup()
Dfutex_wait01.c34 …{ .fntype = FUTEX_FN_FUTEX, .tstype = TST_KERN_OLD_TIMESPEC, .desc = "syscall with old kernel spec…
38 …{ .fntype = FUTEX_FN_FUTEX64, .tstype = TST_KERN_TIMESPEC, .desc = "syscall time64 with kernel spe…
49 res = futex_wait(tv->fntype, tc->f_addr, tc->f_val, &to, tc->opflags); in run()
70 futex_supported_by_kernel(tv->fntype); in setup()
Dfutex_cmp_requeue02.c37 { .fntype = FUTEX_FN_FUTEX, .desc = "syscall with old kernel spec"},
41 { .fntype = FUTEX_FN_FUTEX64, .desc = "syscall time64 with kernel spec"},
50 TEST(futex_cmp_requeue(tv->fntype, &futexes[0], tc->exp_val, in verify_futex_cmp_requeue()
72 futex_supported_by_kernel(tv->fntype); in setup()
Dfutex_wait_bitset01.c26 …{ .fntype = FUTEX_FN_FUTEX, .tstype = TST_KERN_OLD_TIMESPEC, .gettime = sys_clock_gettime, .desc =…
30 …{ .fntype = FUTEX_FN_FUTEX64, .tstype = TST_KERN_TIMESPEC, .gettime = sys_clock_gettime64, .desc =…
50 TEST(futex_wait_bitset(tv->fntype, &futex, futex, &to, bitset, flags)); in verify_futex_wait_bitset()
100 futex_supported_by_kernel(tv->fntype); in setup()
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestloadso.c22 typedef int (*fntype) (const char *); typedef
32 fntype fn = NULL; in main()
62 fn = (fntype) SDL_LoadFunction(lib, symname); in main()
/third_party/ltp/tools/sparse/sparse-src/
Dbuiltin.c96 struct symbol *fntype = expr->fn->ctype->ctype.base_type; in args_prototype() local
97 int n = symbol_list_size(fntype->arguments); in args_prototype()
406 struct symbol *fntype = expr->fn->ctype->ctype.base_type; in evaluate_generic_int_op() local
413 PREPARE_PTR_LIST(fntype->arguments, t); in evaluate_generic_int_op()
458 struct symbol *fntype = expr->fn->ctype->ctype.base_type; in eval_atomic_common() local
467 PREPARE_PTR_LIST(fntype->arguments, t); in eval_atomic_common()
Dlinearize.c1498 struct symbol *fntype; in linearize_call_expression() local
1505 fntype = fn->ctype; in linearize_call_expression()
1508 if (fntype->op && fntype->op->linearize) { in linearize_call_expression()
1509 retval = fntype->op->linearize(ep, expr); in linearize_call_expression()
1514 ctype = &fntype->ctype; in linearize_call_expression()
1517 add_symbol(&insn->fntypes, fntype); in linearize_call_expression()
Devaluate.c3583 struct symbol *fntype, *rettype; in evaluate_return_expression() local
3586 fntype = current_fn->ctype.base_type; in evaluate_return_expression()
3587 rettype = fntype->ctype.base_type; in evaluate_return_expression()
Dsimplify.c362 struct symbol *fntype = first_symbol(insn->fntypes); in kill_insn() local
364 if (!(fntype->ctype.modifiers & MOD_PURE)) in kill_insn()