• Home
  • Raw
  • Download

Lines Matching refs:ret

113 	int ret = -ENOMEM;  in alloc_trace_probe()  local
117 return ERR_PTR(ret); in alloc_trace_probe()
134 ret = -EINVAL; in alloc_trace_probe()
144 ret = -EINVAL; in alloc_trace_probe()
158 return ERR_PTR(ret); in alloc_trace_probe()
189 int ret = 0; in trace_probe_nr_files() local
198 ret++; in trace_probe_nr_files()
200 return ret; in trace_probe_nr_files()
212 int ret = 0; in enable_trace_probe() local
225 ret = -ENOMEM; in enable_trace_probe()
246 ret = enable_kretprobe(&tp->rp); in enable_trace_probe()
248 ret = enable_kprobe(&tp->rp.kp); in enable_trace_probe()
254 return ret; in enable_trace_probe()
284 int ret = 0; in disable_trace_probe() local
295 ret = -EINVAL; in disable_trace_probe()
306 ret = -ENOMEM; in disable_trace_probe()
334 return ret; in disable_trace_probe()
340 int i, ret; in __register_trace_probe() local
355 ret = register_kretprobe(&tp->rp); in __register_trace_probe()
357 ret = register_kprobe(&tp->rp.kp); in __register_trace_probe()
359 if (ret == 0) in __register_trace_probe()
363 trace_probe_symbol(tp), trace_probe_offset(tp), ret); in __register_trace_probe()
364 if (ret == -ENOENT && trace_probe_is_on_module(tp)) { in __register_trace_probe()
367 ret = 0; in __register_trace_probe()
368 } else if (ret == -EILSEQ) { in __register_trace_probe()
372 ret = -EINVAL; in __register_trace_probe()
376 return ret; in __register_trace_probe()
412 int ret; in register_trace_probe() local
419 ret = unregister_trace_probe(old_tp); in register_trace_probe()
420 if (ret < 0) in register_trace_probe()
426 ret = register_probe_event(tp); in register_trace_probe()
427 if (ret) { in register_trace_probe()
428 pr_warning("Failed to register probe event(%d)\n", ret); in register_trace_probe()
433 ret = __register_trace_probe(tp); in register_trace_probe()
434 if (ret < 0) in register_trace_probe()
441 return ret; in register_trace_probe()
450 int ret; in trace_probe_module_callback() local
461 ret = __register_trace_probe(tp); in trace_probe_module_callback()
462 if (ret) in trace_probe_module_callback()
465 tp->call.name, mod->name, ret); in trace_probe_module_callback()
499 int i, ret = 0; in create_trace_probe() local
552 ret = unregister_trace_probe(tp); in create_trace_probe()
553 if (ret == 0) in create_trace_probe()
556 return ret; in create_trace_probe()
569 ret = kstrtoul(&argv[1][0], 0, (unsigned long *)&addr); in create_trace_probe()
570 if (ret) { in create_trace_probe()
572 return ret; in create_trace_probe()
578 ret = traceprobe_split_symbol_offset(symbol, &offset); in create_trace_probe()
579 if (ret) { in create_trace_probe()
581 return ret; in create_trace_probe()
610 ret = 0; in create_trace_probe()
629 ret = -ENOMEM; in create_trace_probe()
636 ret = -EINVAL; in create_trace_probe()
644 ret = -EINVAL; in create_trace_probe()
649 ret = traceprobe_parse_probe_arg(arg, &tp->size, &tp->args[i], in create_trace_probe()
651 if (ret) { in create_trace_probe()
652 pr_info("Parse error at argument[%d]. (%d)\n", i, ret); in create_trace_probe()
657 ret = register_trace_probe(tp); in create_trace_probe()
658 if (ret) in create_trace_probe()
664 return ret; in create_trace_probe()
670 int ret = 0; in release_all_trace_probes() local
676 ret = -EBUSY; in release_all_trace_probes()
689 return ret; in release_all_trace_probes()
741 int ret; in probes_open() local
744 ret = release_all_trace_probes(); in probes_open()
745 if (ret < 0) in probes_open()
746 return ret; in probes_open()
803 int i, ret = 0; in __get_data_size() local
809 ret += len; in __get_data_size()
812 return ret; in __get_data_size()
1046 int ret, i; in kprobe_event_define_fields() local
1053 ret = trace_define_field(event_call, tp->args[i].type->fmttype, in kprobe_event_define_fields()
1059 if (ret) in kprobe_event_define_fields()
1060 return ret; in kprobe_event_define_fields()
1067 int ret, i; in kretprobe_event_define_fields() local
1075 ret = trace_define_field(event_call, tp->args[i].type->fmttype, in kretprobe_event_define_fields()
1081 if (ret) in kretprobe_event_define_fields()
1082 return ret; in kretprobe_event_define_fields()
1285 int ret; in register_probe_event() local
1298 ret = register_ftrace_event(&call->event); in register_probe_event()
1299 if (!ret) { in register_probe_event()
1306 ret = trace_add_event_call(call); in register_probe_event()
1307 if (ret) { in register_probe_event()
1312 return ret; in register_probe_event()
1381 int ret, warn = 0; in kprobe_trace_self_tests_init() local
1390 ret = traceprobe_command("p:testprobe kprobe_trace_selftest_target " in kprobe_trace_self_tests_init()
1393 if (WARN_ON_ONCE(ret)) { in kprobe_trace_self_tests_init()
1412 ret = traceprobe_command("r:testprobe2 kprobe_trace_selftest_target " in kprobe_trace_self_tests_init()
1414 if (WARN_ON_ONCE(ret)) { in kprobe_trace_self_tests_init()
1436 ret = target(1, 2, 3, 4, 5, 6); in kprobe_trace_self_tests_init()
1465 ret = traceprobe_command("-:testprobe", create_trace_probe); in kprobe_trace_self_tests_init()
1466 if (WARN_ON_ONCE(ret)) { in kprobe_trace_self_tests_init()
1471 ret = traceprobe_command("-:testprobe2", create_trace_probe); in kprobe_trace_self_tests_init()
1472 if (WARN_ON_ONCE(ret)) { in kprobe_trace_self_tests_init()