• Home
  • Raw
  • Download

Lines Matching refs:ret

177 	int ret;  in event_trigger_regex_open()  local
179 ret = security_locked_down(LOCKDOWN_TRACEFS); in event_trigger_regex_open()
180 if (ret) in event_trigger_regex_open()
181 return ret; in event_trigger_regex_open()
204 ret = seq_open(file, &event_triggers_seq_ops); in event_trigger_regex_open()
205 if (!ret) { in event_trigger_regex_open()
213 return ret; in event_trigger_regex_open()
220 int ret = -EINVAL; in trigger_process_regex() local
228 ret = p->func(p, file, buff, command, next); in trigger_process_regex()
235 return ret; in trigger_process_regex()
243 ssize_t ret; in event_trigger_regex_write() local
265 ret = trigger_process_regex(event_file, buf); in event_trigger_regex_write()
269 if (ret < 0) in event_trigger_regex_write()
273 ret = cnt; in event_trigger_regex_write()
275 return ret; in event_trigger_regex_write()
325 int ret = 0; in register_event_command() local
330 ret = -EBUSY; in register_event_command()
338 return ret; in register_event_command()
348 int ret = -ENODEV; in unregister_event_command() local
353 ret = 0; in unregister_event_command()
361 return ret; in unregister_event_command()
443 int ret = 0; in trace_event_trigger_enable_disable() local
447 return ret; in trace_event_trigger_enable_disable()
449 ret = trace_event_enable_disable(file, 1, 1); in trace_event_trigger_enable_disable()
452 return ret; in trace_event_trigger_enable_disable()
454 ret = trace_event_enable_disable(file, 0, 1); in trace_event_trigger_enable_disable()
457 return ret; in trace_event_trigger_enable_disable()
539 int ret = 0; in register_trigger() local
545 ret = -EEXIST; in register_trigger()
551 ret = data->ops->init(data->ops, data); in register_trigger()
552 if (ret < 0) in register_trigger()
557 ret++; in register_trigger()
563 ret--; in register_trigger()
566 return ret; in register_trigger()
629 int ret; in event_trigger_callback() local
637 ret = -ENOMEM; in event_trigger_callback()
652 ret = 0; in event_trigger_callback()
659 ret = -EINVAL; in event_trigger_callback()
667 ret = kstrtoul(number, 0, &trigger_data->count); in event_trigger_callback()
668 if (ret) in event_trigger_callback()
678 ret = cmd_ops->set_filter(param, trigger_data, file); in event_trigger_callback()
679 if (ret < 0) in event_trigger_callback()
685 ret = cmd_ops->reg(glob, trigger_ops, trigger_data, file); in event_trigger_callback()
691 if (!ret) { in event_trigger_callback()
693 ret = -ENOENT; in event_trigger_callback()
694 } else if (ret > 0) in event_trigger_callback()
695 ret = 0; in event_trigger_callback()
700 return ret; in event_trigger_callback()
731 int ret = -EINVAL; in set_trigger_filter() local
746 ret = create_event_filter(file->tr, file->event_call, in set_trigger_filter()
771 ret = -ENOMEM; in set_trigger_filter()
775 return ret; in set_trigger_filter()
1090 int ret = register_trigger(glob, ops, data, file); in register_snapshot_trigger() local
1092 if (ret > 0 && tracing_alloc_snapshot_instance(file->tr) != 0) { in register_snapshot_trigger()
1094 ret = 0; in register_snapshot_trigger()
1097 return ret; in register_snapshot_trigger()
1140 int ret; in register_trigger_snapshot_cmd() local
1142 ret = register_event_command(&trigger_snapshot_cmd); in register_trigger_snapshot_cmd()
1143 WARN_ON(ret < 0); in register_trigger_snapshot_cmd()
1145 return ret; in register_trigger_snapshot_cmd()
1230 int ret; in register_trigger_stacktrace_cmd() local
1232 ret = register_event_command(&trigger_stacktrace_cmd); in register_trigger_stacktrace_cmd()
1233 WARN_ON(ret < 0); in register_trigger_stacktrace_cmd()
1235 return ret; in register_trigger_stacktrace_cmd()
1365 int ret; in event_enable_trigger_func() local
1381 ret = -EINVAL; in event_enable_trigger_func()
1397 ret = -ENOMEM; in event_enable_trigger_func()
1423 ret = 0; in event_enable_trigger_func()
1433 ret = -EINVAL; in event_enable_trigger_func()
1441 ret = kstrtoul(number, 0, &trigger_data->count); in event_enable_trigger_func()
1442 if (ret) in event_enable_trigger_func()
1452 ret = cmd_ops->set_filter(param, trigger_data, file); in event_enable_trigger_func()
1453 if (ret < 0) in event_enable_trigger_func()
1458 ret = try_module_get(event_enable_file->event_call->mod); in event_enable_trigger_func()
1459 if (!ret) { in event_enable_trigger_func()
1460 ret = -EBUSY; in event_enable_trigger_func()
1464 ret = trace_event_enable_disable(event_enable_file, 1, 1); in event_enable_trigger_func()
1465 if (ret < 0) in event_enable_trigger_func()
1467 ret = cmd_ops->reg(glob, trigger_ops, trigger_data, file); in event_enable_trigger_func()
1473 if (!ret) { in event_enable_trigger_func()
1474 ret = -ENOENT; in event_enable_trigger_func()
1476 } else if (ret < 0) in event_enable_trigger_func()
1479 ret = 0; in event_enable_trigger_func()
1482 return ret; in event_enable_trigger_func()
1504 int ret = 0; in event_enable_register_trigger() local
1514 ret = -EEXIST; in event_enable_register_trigger()
1520 ret = data->ops->init(data->ops, data); in event_enable_register_trigger()
1521 if (ret < 0) in event_enable_register_trigger()
1526 ret++; in event_enable_register_trigger()
1532 ret--; in event_enable_register_trigger()
1535 return ret; in event_enable_register_trigger()
1618 int ret; in register_trigger_enable_disable_cmds() local
1620 ret = register_event_command(&trigger_enable_cmd); in register_trigger_enable_disable_cmds()
1621 if (WARN_ON(ret < 0)) in register_trigger_enable_disable_cmds()
1622 return ret; in register_trigger_enable_disable_cmds()
1623 ret = register_event_command(&trigger_disable_cmd); in register_trigger_enable_disable_cmds()
1624 if (WARN_ON(ret < 0)) in register_trigger_enable_disable_cmds()
1627 return ret; in register_trigger_enable_disable_cmds()
1632 int ret; in register_trigger_traceon_traceoff_cmds() local
1634 ret = register_event_command(&trigger_traceon_cmd); in register_trigger_traceon_traceoff_cmds()
1635 if (WARN_ON(ret < 0)) in register_trigger_traceon_traceoff_cmds()
1636 return ret; in register_trigger_traceon_traceoff_cmds()
1637 ret = register_event_command(&trigger_traceoff_cmd); in register_trigger_traceon_traceoff_cmds()
1638 if (WARN_ON(ret < 0)) in register_trigger_traceon_traceoff_cmds()
1641 return ret; in register_trigger_traceon_traceoff_cmds()