Lines Matching refs:ret
58 int ret; in test_kprobe() local
60 ret = register_kprobe(&kp); in test_kprobe()
61 if (ret < 0) { in test_kprobe()
62 pr_err("register_kprobe returned %d\n", ret); in test_kprobe()
63 return ret; in test_kprobe()
66 ret = target(rand1); in test_kprobe()
111 int ret; in test_kprobes() local
117 ret = register_kprobes(kps, 2); in test_kprobes()
118 if (ret < 0) { in test_kprobes()
119 pr_err("register_kprobes returned %d\n", ret); in test_kprobes()
120 return ret; in test_kprobes()
125 ret = target(rand1); in test_kprobes()
139 ret = target2(rand1); in test_kprobes()
171 unsigned long ret = regs_return_value(regs); in return_handler() local
177 if (ret != (rand1 / div_factor)) { in return_handler()
198 int ret; in test_kretprobe() local
200 ret = register_kretprobe(&rp); in test_kretprobe()
201 if (ret < 0) { in test_kretprobe()
202 pr_err("register_kretprobe returned %d\n", ret); in test_kretprobe()
203 return ret; in test_kretprobe()
206 ret = target(rand1); in test_kretprobe()
218 unsigned long ret = regs_return_value(regs); in return_handler2() local
220 if (ret != (rand1 / div_factor) + 1) { in return_handler2()
241 int ret; in test_kretprobes() local
247 ret = register_kretprobes(rps, 2); in test_kretprobes()
248 if (ret < 0) { in test_kretprobes()
249 pr_err("register_kretprobe returned %d\n", ret); in test_kretprobes()
250 return ret; in test_kretprobes()
254 ret = target(rand1); in test_kretprobes()
261 ret = target2(rand1); in test_kretprobes()
273 int ret; in init_test_probes() local
284 ret = test_kprobe(); in init_test_probes()
285 if (ret < 0) in init_test_probes()
289 ret = test_kprobes(); in init_test_probes()
290 if (ret < 0) in init_test_probes()
295 ret = test_kretprobe(); in init_test_probes()
296 if (ret < 0) in init_test_probes()
300 ret = test_kretprobes(); in init_test_probes()
301 if (ret < 0) in init_test_probes()