Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 207) sorted by relevance

123456789

/kernel/trace/
Dtrace_selftest.c66 int cpu, ret = 0; in trace_test_buffer() local
83 ret = trace_test_buffer_cpu(buf, cpu); in trace_test_buffer()
84 if (ret) in trace_test_buffer()
94 return ret; in trace_test_buffer()
193 int ret = -1; in trace_selftest_ops() local
293 ret = 0; in trace_selftest_ops()
317 ret = -1; in trace_selftest_ops()
321 return ret; in trace_selftest_ops()
332 int ret; in trace_selftest_startup_dynamic_tracing() local
355 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing()
[all …]
Dtrace_kprobe.c118 bool ret; in trace_kprobe_module_exist() local
127 ret = !!find_module(tk->symbol); in trace_kprobe_module_exist()
131 return ret; in trace_kprobe_module_exist()
265 int ret = -ENOMEM; in alloc_trace_kprobe() local
269 return ERR_PTR(ret); in alloc_trace_kprobe()
293 ret = trace_probe_init(&tk->tp, event, group, 0); in alloc_trace_kprobe()
294 if (ret < 0) in alloc_trace_kprobe()
301 return ERR_PTR(ret); in alloc_trace_kprobe()
319 int ret = 0; in __enable_trace_kprobe() local
323 ret = enable_kretprobe(&tk->rp); in __enable_trace_kprobe()
[all …]
Dtrace_event_perf.c30 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()
[all …]
Dfgraph.c59 ftrace_push_return_trace(unsigned long ret, unsigned long func, in ftrace_push_return_trace() argument
87 current->ret_stack[index].ret = ret; in ftrace_push_return_trace()
99 int function_graph_enter(unsigned long ret, unsigned long func, in function_graph_enter() argument
107 if (ftrace_push_return_trace(ret, func, frame_pointer, retp)) in function_graph_enter()
124 ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret, in ftrace_pop_return_trace() argument
135 *ret = (unsigned long)panic; in ftrace_pop_return_trace()
161 current->ret_stack[index].ret); in ftrace_pop_return_trace()
162 *ret = (unsigned long)panic; in ftrace_pop_return_trace()
167 *ret = current->ret_stack[index].ret; in ftrace_pop_return_trace()
212 unsigned long ret; in ftrace_return_to_handler() local
[all …]
Dtrace_events_trigger.c177 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()
[all …]
Dtrace_uprobe.c122 unsigned long ret; in get_user_stack_nth() local
127 if (copy_from_user(&ret, (void __force __user *) addr, sizeof(ret))) in get_user_stack_nth()
130 return ret; in get_user_stack_nth()
157 long ret; in fetch_store_string() local
167 ret = strlcpy(dst, current->comm, maxlen); in fetch_store_string()
169 ret = strncpy_from_user(dst, src, maxlen); in fetch_store_string()
170 if (ret >= 0) { in fetch_store_string()
171 if (ret == maxlen) in fetch_store_string()
172 dst[ret - 1] = '\0'; in fetch_store_string()
179 ret++; in fetch_store_string()
[all …]
Dtrace_events.c148 ret = __trace_define_field(&ftrace_generic_fields, #type, \
151 if (ret) \
152 return ret;
155 ret = __trace_define_field(&ftrace_common_fields, #type, \
160 if (ret) \
161 return ret;
165 int ret; in trace_define_generic_fields() local
172 return ret; in trace_define_generic_fields()
177 int ret; in trace_define_common_fields() local
185 return ret; in trace_define_common_fields()
[all …]
Dtrace_dynevent.c38 int ret = -ENOENT; in dyn_event_release() local
69 ret = pos->ops->free(pos); in dyn_event_release()
70 if (ret) in dyn_event_release()
75 return ret; in dyn_event_release()
81 int ret = -ENODEV; in create_dyn_event() local
88 ret = ops->create(argc, (const char **)argv); in create_dyn_event()
89 if (!ret || ret != -ECANCELED) in create_dyn_event()
93 if (ret == -ECANCELED) in create_dyn_event()
94 ret = -EINVAL; in create_dyn_event()
96 return ret; in create_dyn_event()
[all …]
Dtrace.c280 int ret = -ENODEV; in trace_array_get() local
286 ret = 0; in trace_array_get()
292 return ret; in trace_array_get()
310 int ret; in tracing_check_open_get_tr() local
312 ret = security_locked_down(LOCKDOWN_TRACEFS); in tracing_check_open_get_tr()
313 if (ret) in tracing_check_open_get_tr()
314 return ret; in tracing_check_open_get_tr()
505 ssize_t ret = 0; in trace_pid_write() local
550 ret = trace_get_user(&parser, ubuf, cnt, &pos); in trace_pid_write()
551 if (ret < 0 || !trace_parser_loaded(&parser)) in trace_pid_write()
[all …]
/kernel/
Dtest_kprobes.c58 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()
[all …]
Dfutex.c754 int ret; in fault_in_user_writeable() local
757 ret = fixup_user_fault(current, mm, (unsigned long)uaddr, in fault_in_user_writeable()
761 return ret < 0 ? ret : 0; in fault_in_user_writeable()
786 int ret; in cmpxchg_futex_value_locked() local
789 ret = futex_atomic_cmpxchg_inatomic(curval, uaddr, uval, newval); in cmpxchg_futex_value_locked()
792 return ret; in cmpxchg_futex_value_locked()
797 int ret; in get_futex_value_locked() local
800 ret = __get_user(*dest, from); in get_futex_value_locked()
803 return ret ? -EFAULT : 0; in get_futex_value_locked()
1067 int ret; in attach_to_pi_state() local
[all …]
Dcpu.c155 int ret, cnt; in cpuhp_invoke_callback() local
172 ret = cb(cpu); in cpuhp_invoke_callback()
173 trace_cpuhp_exit(cpu, st->state, state, ret); in cpuhp_invoke_callback()
174 return ret; in cpuhp_invoke_callback()
184 ret = cbm(cpu, node); in cpuhp_invoke_callback()
185 trace_cpuhp_exit(cpu, st->state, state, ret); in cpuhp_invoke_callback()
186 return ret; in cpuhp_invoke_callback()
196 ret = cbm(cpu, node); in cpuhp_invoke_callback()
197 trace_cpuhp_exit(cpu, st->state, state, ret); in cpuhp_invoke_callback()
198 if (ret) { in cpuhp_invoke_callback()
[all …]
Dptrace.c46 int ret; in ptrace_access_vm() local
60 ret = __access_remote_vm(tsk, mm, addr, buf, len, gup_flags); in ptrace_access_vm()
63 return ret; in ptrace_access_vm()
175 bool ret = false; in ptrace_freeze_traced() local
179 return ret; in ptrace_freeze_traced()
184 ret = true; in ptrace_freeze_traced()
188 return ret; in ptrace_freeze_traced()
231 int ret = -ESRCH; in ptrace_check_attach() local
248 ret = 0; in ptrace_check_attach()
252 if (!ret && !ignore_state) { in ptrace_check_attach()
[all …]
Dkexec_file.c42 int ret = -ENOEXEC; in kexec_image_probe_default() local
45 ret = (*fops)->probe(buf, buf_len); in kexec_image_probe_default()
46 if (!ret) { in kexec_image_probe_default()
48 return ret; in kexec_image_probe_default()
52 return ret; in kexec_image_probe_default()
185 int ret; in kimage_validate_signature() local
187 ret = arch_kexec_kernel_verify_sig(image, image->kernel_buf, in kimage_validate_signature()
189 switch (ret) { in kimage_validate_signature()
208 return ret; in kimage_validate_signature()
226 pr_notice("kernel signature verification failed (%d).\n", ret); in kimage_validate_signature()
[all …]
Dseccomp.c253 #define ACTION_ONLY(ret) ((s32)((ret) & (SECCOMP_RET_ACTION_FULL))) argument
257 u32 ret = SECCOMP_RET_ALLOW; in seccomp_run_filters() local
274 if (ACTION_ONLY(cur_ret) < ACTION_ONLY(ret)) { in seccomp_run_filters()
275 ret = cur_ret; in seccomp_run_filters()
280 return ret; in seccomp_run_filters()
433 int ret; in seccomp_prepare_filter() local
458 ret = bpf_prog_create_from_user(&sfilter->prog, fprog, in seccomp_prepare_filter()
460 if (ret < 0) { in seccomp_prepare_filter()
462 return ERR_PTR(ret); in seccomp_prepare_filter()
527 int ret; in seccomp_attach_filter() local
[all …]
Dnotifier.c80 int ret = NOTIFY_DONE; in notifier_call_chain() local
95 ret = nb->notifier_call(nb, val, v); in notifier_call_chain()
100 if (ret & NOTIFY_STOP_MASK) in notifier_call_chain()
105 return ret; in notifier_call_chain()
127 int ret; in atomic_notifier_chain_register() local
130 ret = notifier_chain_register(&nh->head, n); in atomic_notifier_chain_register()
132 return ret; in atomic_notifier_chain_register()
149 int ret; in atomic_notifier_chain_unregister() local
152 ret = notifier_chain_unregister(&nh->head, n); in atomic_notifier_chain_unregister()
155 return ret; in atomic_notifier_chain_unregister()
[all …]
Dcpu_pm.c20 int ret; in cpu_pm_notify() local
28 ret = __atomic_notifier_call_chain(&cpu_pm_notifier_chain, event, NULL, in cpu_pm_notify()
32 return notifier_to_errno(ret); in cpu_pm_notify()
84 int ret = 0; in cpu_pm_enter() local
86 ret = cpu_pm_notify(CPU_PM_ENTER, -1, &nr_calls); in cpu_pm_enter()
87 if (ret) in cpu_pm_enter()
94 return ret; in cpu_pm_enter()
135 int ret = 0; in cpu_cluster_pm_enter() local
137 ret = cpu_pm_notify(CPU_CLUSTER_PM_ENTER, -1, &nr_calls); in cpu_cluster_pm_enter()
138 if (ret) in cpu_cluster_pm_enter()
[all …]
Dcapability.c119 int ret; in cap_get_target_pid() local
128 ret = -ESRCH; in cap_get_target_pid()
130 ret = security_capget(target, pEp, pIp, pPp); in cap_get_target_pid()
134 ret = security_capget(current, pEp, pIp, pPp); in cap_get_target_pid()
136 return ret; in cap_get_target_pid()
150 int ret = 0; in SYSCALL_DEFINE2() local
155 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2()
156 if ((dataptr == NULL) || (ret != 0)) in SYSCALL_DEFINE2()
157 return ((dataptr == NULL) && (ret == -EINVAL)) ? 0 : ret; in SYSCALL_DEFINE2()
165 ret = cap_get_target_pid(pid, &pE, &pI, &pP); in SYSCALL_DEFINE2()
[all …]
Drseq.c121 int ret; in rseq_get_rseq_cs() local
148 ret = get_user(sig, usig); in rseq_get_rseq_cs()
149 if (ret) in rseq_get_rseq_cs()
150 return ret; in rseq_get_rseq_cs()
164 int ret; in rseq_need_restart() local
167 ret = get_user(flags, &t->rseq->flags); in rseq_need_restart()
168 if (ret) in rseq_need_restart()
169 return ret; in rseq_need_restart()
226 int ret; in rseq_ip_fixup() local
228 ret = rseq_get_rseq_cs(t, &rseq_cs); in rseq_ip_fixup()
[all …]
Dreboot.c120 int ret; in devm_register_reboot_notifier() local
127 ret = register_reboot_notifier(nb); in devm_register_reboot_notifier()
128 if (!ret) { in devm_register_reboot_notifier()
135 return ret; in devm_register_reboot_notifier()
317 int ret = 0; in SYSCALL_DEFINE4() local
336 ret = reboot_pid_ns(pid_ns, cmd); in SYSCALL_DEFINE4()
337 if (ret) in SYSCALL_DEFINE4()
338 return ret; in SYSCALL_DEFINE4()
371 ret = strncpy_from_user(&buffer[0], arg, sizeof(buffer) - 1); in SYSCALL_DEFINE4()
372 if (ret < 0) { in SYSCALL_DEFINE4()
[all …]
/kernel/livepatch/
Dcore.c195 int i, cnt, vmlinux, ret; in klp_resolve_symbols() local
237 ret = klp_find_object_symbol(vmlinux ? NULL : objname, in klp_resolve_symbols()
239 if (ret) in klp_resolve_symbols()
240 return ret; in klp_resolve_symbols()
251 int i, cnt, ret = 0; in klp_write_object_relocations() local
277 ret = -EINVAL; in klp_write_object_relocations()
284 ret = klp_resolve_symbols(sec, pmod); in klp_write_object_relocations()
285 if (ret) in klp_write_object_relocations()
288 ret = apply_relocate_add(pmod->klp_info->sechdrs, in klp_write_object_relocations()
291 if (ret) in klp_write_object_relocations()
[all …]
/kernel/locking/
Dtest-ww_mutex.c53 int ret; in __test_mutex() local
72 ret = 0; in __test_mutex()
75 ret = -EINVAL; in __test_mutex()
81 ret = wait_for_completion_timeout(&mtx.done, TIMEOUT); in __test_mutex()
86 if (ret) { in __test_mutex()
89 ret = -EINVAL; in __test_mutex()
94 return ret; in __test_mutex()
100 int ret; in test_mutex() local
104 ret = __test_mutex(i); in test_mutex()
105 if (ret) in test_mutex()
[all …]
/kernel/dma/
Dcoherent.c48 int ret; in dma_init_coherent_memory() local
51 ret = -EINVAL; in dma_init_coherent_memory()
57 ret = -EINVAL; in dma_init_coherent_memory()
62 ret = -ENOMEM; in dma_init_coherent_memory()
67 ret = -ENOMEM; in dma_init_coherent_memory()
84 return ret; in dma_init_coherent_memory()
114 int ret; in dma_declare_coherent_memory() local
116 ret = dma_init_coherent_memory(phys_addr, device_addr, size, &mem); in dma_declare_coherent_memory()
117 if (ret) in dma_declare_coherent_memory()
118 return ret; in dma_declare_coherent_memory()
[all …]
/kernel/bpf/
Dinode.c390 int ret; in bpf_obj_do_pin() local
398 ret = security_path_mknod(&path, dentry, mode, 0); in bpf_obj_do_pin()
399 if (ret) in bpf_obj_do_pin()
404 ret = -EPERM; in bpf_obj_do_pin()
410 ret = vfs_mkobj(dentry, mode, bpf_mkprog, raw); in bpf_obj_do_pin()
413 ret = vfs_mkobj(dentry, mode, bpf_mkmap, raw); in bpf_obj_do_pin()
416 ret = -EPERM; in bpf_obj_do_pin()
420 return ret; in bpf_obj_do_pin()
428 int ret; in bpf_obj_pin_user() local
436 ret = PTR_ERR(raw); in bpf_obj_pin_user()
[all …]
/kernel/power/
Dswap.c371 int ret; in write_page() local
382 ret = hib_wait_io(hb); /* Free pages */ in write_page()
383 if (ret) in write_page()
384 return ret; in write_page()
411 int ret; in get_swap_writer() local
413 ret = swsusp_swap_check(); in get_swap_writer()
414 if (ret) { in get_swap_writer()
415 if (ret != -ENOSPC) in get_swap_writer()
417 return ret; in get_swap_writer()
421 ret = -ENOMEM; in get_swap_writer()
[all …]

123456789