Lines Matching refs:ret
30 int ret; in perf_trace_event_perm() local
33 ret = tp_event->perf_perm(tp_event, p_event); in perf_trace_event_perm()
34 if (ret) in perf_trace_event_perm()
35 return ret; in perf_trace_event_perm()
52 ret = perf_allow_tracepoint(&p_event->attr); in perf_trace_event_perm()
53 if (ret) in perf_trace_event_perm()
54 return ret; in perf_trace_event_perm()
89 ret = perf_allow_tracepoint(&p_event->attr); in perf_trace_event_perm()
90 if (ret) in perf_trace_event_perm()
91 return ret; in perf_trace_event_perm()
100 int ret = -ENOMEM; in perf_trace_event_reg() local
129 ret = tp_event->class->reg(tp_event, TRACE_REG_PERF_REGISTER, NULL); in perf_trace_event_reg()
130 if (ret) in perf_trace_event_reg()
151 return ret; in perf_trace_event_reg()
198 int ret; in perf_trace_event_init() local
200 ret = perf_trace_event_perm(tp_event, p_event); in perf_trace_event_init()
201 if (ret) in perf_trace_event_init()
202 return ret; in perf_trace_event_init()
204 ret = perf_trace_event_reg(tp_event, p_event); in perf_trace_event_init()
205 if (ret) in perf_trace_event_init()
206 return ret; in perf_trace_event_init()
208 ret = perf_trace_event_open(p_event); in perf_trace_event_init()
209 if (ret) { in perf_trace_event_init()
211 return ret; in perf_trace_event_init()
221 int ret = -EINVAL; in perf_trace_init() local
228 ret = perf_trace_event_init(tp_event, p_event); in perf_trace_init()
229 if (ret) in perf_trace_init()
236 return ret; in perf_trace_init()
250 int ret; in perf_kprobe_init() local
258 ret = strncpy_from_user( in perf_kprobe_init()
261 if (ret == KSYM_NAME_LEN) in perf_kprobe_init()
262 ret = -E2BIG; in perf_kprobe_init()
263 if (ret < 0) in perf_kprobe_init()
276 ret = PTR_ERR(tp_event); in perf_kprobe_init()
281 ret = perf_trace_event_init(tp_event, p_event); in perf_kprobe_init()
282 if (ret) in perf_kprobe_init()
287 return ret; in perf_kprobe_init()
305 int ret; in perf_uprobe_init() local
315 ret = PTR_ERR(path); in perf_uprobe_init()
316 return (ret == -EINVAL) ? -E2BIG : ret; in perf_uprobe_init()
319 ret = -EINVAL; in perf_uprobe_init()
326 ret = PTR_ERR(tp_event); in perf_uprobe_init()
336 ret = perf_trace_event_init(tp_event, p_event); in perf_uprobe_init()
337 if (ret) in perf_uprobe_init()
342 return ret; in perf_uprobe_init()
490 int ret = unregister_ftrace_function(ops); in perf_ftrace_function_unregister() local
492 return ret; in perf_ftrace_function_unregister()