Home
last modified time | relevance | path

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

12345678910

/kernel/trace/
Dsynth_event_gen_test.c50 int ret; in test_gen_synth_cmd() local
64 ret = synth_event_gen_cmd_start(&cmd, "gen_synth_test", THIS_MODULE, in test_gen_synth_cmd()
69 if (ret) in test_gen_synth_cmd()
74 ret = synth_event_add_field(&cmd, "unsigned int", "cpu"); in test_gen_synth_cmd()
75 if (ret) in test_gen_synth_cmd()
78 ret = synth_event_add_field(&cmd, "char[64]", "my_string_field"); in test_gen_synth_cmd()
79 if (ret) in test_gen_synth_cmd()
82 ret = synth_event_add_field(&cmd, "int", "my_int_field"); in test_gen_synth_cmd()
83 if (ret) in test_gen_synth_cmd()
86 ret = synth_event_gen_cmd_end(&cmd); in test_gen_synth_cmd()
[all …]
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_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()
76 return ret; in dyn_event_release()
82 int ret = -ENODEV; in create_dyn_event() local
89 ret = ops->create(argc, (const char **)argv); in create_dyn_event()
90 if (!ret || ret != -ECANCELED) in create_dyn_event()
94 if (ret == -ECANCELED) in create_dyn_event()
95 ret = -EINVAL; in create_dyn_event()
97 return ret; in create_dyn_event()
[all …]
Dtrace_kprobe.c119 bool ret; in trace_kprobe_module_exist() local
128 ret = !!find_module(tk->symbol); in trace_kprobe_module_exist()
132 return ret; in trace_kprobe_module_exist()
266 int ret = -ENOMEM; in alloc_trace_kprobe() local
270 return ERR_PTR(ret); in alloc_trace_kprobe()
294 ret = trace_probe_init(&tk->tp, event, group, false); in alloc_trace_kprobe()
295 if (ret < 0) in alloc_trace_kprobe()
302 return ERR_PTR(ret); in alloc_trace_kprobe()
320 int ret = 0; in __enable_trace_kprobe() local
324 ret = enable_kretprobe(&tk->rp); in __enable_trace_kprobe()
[all …]
Dtrace_events_synth.c119 int ret = 0; in synth_event_define_fields() local
126 ret = trace_define_field(call, type, name, offset, size, in synth_event_define_fields()
128 if (ret) in synth_event_define_fields()
144 return ret; in synth_event_define_fields()
587 int len, ret = -ENOMEM; in parse_synth_field() local
625 ret = -EINVAL; in parse_synth_field()
660 ret = -EINVAL; in parse_synth_field()
686 ret = -EINVAL; in parse_synth_field()
700 field = ERR_PTR(ret); in parse_synth_field()
755 int ret = 0; in register_synth_event() local
[all …]
Dkprobe_event_gen_test.c89 int ret; in test_gen_kprobe_cmd() local
103 ret = kprobe_event_gen_cmd_start(&cmd, "gen_kprobe_test", in test_gen_kprobe_cmd()
106 if (ret) in test_gen_kprobe_cmd()
111 ret = kprobe_event_add_fields(&cmd, KPROBE_GEN_TEST_ARG2, KPROBE_GEN_TEST_ARG3); in test_gen_kprobe_cmd()
112 if (ret) in test_gen_kprobe_cmd()
118 ret = kprobe_event_gen_cmd_end(&cmd); in test_gen_kprobe_cmd()
119 if (ret) in test_gen_kprobe_cmd()
131 ret = PTR_ERR(gen_kprobe_test); in test_gen_kprobe_cmd()
136 ret = trace_array_set_clr_event(gen_kprobe_test->tr, in test_gen_kprobe_cmd()
138 if (ret) { in test_gen_kprobe_cmd()
[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()
113 int function_graph_enter(unsigned long ret, unsigned long func, in function_graph_enter() argument
125 ftrace_find_rec_direct(ret - MCOUNT_INSN_SIZE)) in function_graph_enter()
130 if (ftrace_push_return_trace(ret, func, frame_pointer, retp)) in function_graph_enter()
147 ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret, in ftrace_pop_return_trace() argument
158 *ret = (unsigned long)panic; in ftrace_pop_return_trace()
184 current->ret_stack[index].ret); in ftrace_pop_return_trace()
185 *ret = (unsigned long)panic; in ftrace_pop_return_trace()
190 *ret = current->ret_stack[index].ret; in ftrace_pop_return_trace()
[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 …]
Dtrace_uprobe.c116 unsigned long ret; in get_user_stack_nth() local
121 if (copy_from_user(&ret, (void __force __user *) addr, sizeof(ret))) in get_user_stack_nth()
124 return ret; in get_user_stack_nth()
151 long ret; in fetch_store_string() local
161 ret = strlcpy(dst, current->comm, maxlen); in fetch_store_string()
163 ret = strncpy_from_user(dst, src, maxlen); in fetch_store_string()
164 if (ret >= 0) { in fetch_store_string()
165 if (ret == maxlen) in fetch_store_string()
166 dst[ret - 1] = '\0'; in fetch_store_string()
173 ret++; in fetch_store_string()
[all …]
Dtrace_events.c150 ret = __trace_define_field(&ftrace_generic_fields, #type, \
153 if (ret) \
154 return ret;
157 ret = __trace_define_field(&ftrace_common_fields, #type, \
162 if (ret) \
163 return ret;
167 int ret; in trace_define_generic_fields() local
175 return ret; in trace_define_generic_fields()
180 int ret; in trace_define_common_fields() local
188 return ret; in trace_define_common_fields()
[all …]
Dtrace_events_trigger.c178 int ret; in event_trigger_regex_open() local
180 ret = security_locked_down(LOCKDOWN_TRACEFS); in event_trigger_regex_open()
181 if (ret) in event_trigger_regex_open()
182 return ret; in event_trigger_regex_open()
205 ret = seq_open(file, &event_triggers_seq_ops); in event_trigger_regex_open()
206 if (!ret) { in event_trigger_regex_open()
214 return ret; in event_trigger_regex_open()
221 int ret = -EINVAL; in trigger_process_regex() local
235 ret = p->func(p, file, buff, command, next); in trigger_process_regex()
242 return ret; in trigger_process_regex()
[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 …]
Dnotifier.c68 int ret = NOTIFY_DONE; in notifier_call_chain() local
83 ret = nb->notifier_call(nb, val, v); in notifier_call_chain()
88 if (ret & NOTIFY_STOP_MASK) in notifier_call_chain()
93 return ret; in notifier_call_chain()
116 int ret, nr = 0; in notifier_call_chain_robust() local
118 ret = notifier_call_chain(nl, val_up, v, -1, &nr); in notifier_call_chain_robust()
119 if (ret & NOTIFY_STOP_MASK) in notifier_call_chain_robust()
122 return ret; in notifier_call_chain_robust()
143 int ret; in atomic_notifier_chain_register() local
146 ret = notifier_chain_register(&nh->head, n); in atomic_notifier_chain_register()
[all …]
Dkexec_file.c52 int ret = -ENOEXEC; in kexec_image_probe_default() local
55 ret = (*fops)->probe(buf, buf_len); in kexec_image_probe_default()
56 if (!ret) { in kexec_image_probe_default()
58 return ret; in kexec_image_probe_default()
62 return ret; in kexec_image_probe_default()
165 int ret; in kimage_validate_signature() local
167 ret = arch_kexec_kernel_verify_sig(image, image->kernel_buf, in kimage_validate_signature()
169 if (ret) { in kimage_validate_signature()
172 pr_notice("Enforced kernel signature verification failed (%d).\n", ret); in kimage_validate_signature()
173 return ret; in kimage_validate_signature()
[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()
190 bool ret = false; in ptrace_freeze_traced() local
194 return ret; in ptrace_freeze_traced()
200 ret = true; in ptrace_freeze_traced()
204 return ret; in ptrace_freeze_traced()
247 int ret = -ESRCH; in ptrace_check_attach() local
264 ret = 0; in ptrace_check_attach()
268 if (!ret && !ignore_state) { in ptrace_check_attach()
[all …]
Dcpu.c165 int ret, cnt; in cpuhp_invoke_callback() local
182 ret = cb(cpu); in cpuhp_invoke_callback()
183 trace_cpuhp_exit(cpu, st->state, state, ret); in cpuhp_invoke_callback()
184 return ret; in cpuhp_invoke_callback()
194 ret = cbm(cpu, node); in cpuhp_invoke_callback()
195 trace_cpuhp_exit(cpu, st->state, state, ret); in cpuhp_invoke_callback()
196 return ret; in cpuhp_invoke_callback()
206 ret = cbm(cpu, node); in cpuhp_invoke_callback()
207 trace_cpuhp_exit(cpu, st->state, state, ret); in cpuhp_invoke_callback()
208 if (ret) { in cpuhp_invoke_callback()
[all …]
Dseccomp.c126 int ret; member
393 #define ACTION_ONLY(ret) ((s32)((ret) & (SECCOMP_RET_ACTION_FULL))) argument
397 u32 ret = SECCOMP_RET_ALLOW; in seccomp_run_filters() local
416 if (ACTION_ONLY(cur_ret) < ACTION_ONLY(ret)) { in seccomp_run_filters()
417 ret = cur_ret; in seccomp_run_filters()
421 return ret; in seccomp_run_filters()
632 int ret; in seccomp_prepare_filter() local
661 ret = bpf_prog_create_from_user(&sfilter->prog, fprog, in seccomp_prepare_filter()
663 if (ret < 0) { in seccomp_prepare_filter()
665 return ERR_PTR(ret); in seccomp_prepare_filter()
[all …]
Dkexec.c26 int ret; in copy_user_segment_list() local
32 ret = copy_from_user(image->segment, segments, segment_bytes); in copy_user_segment_list()
33 if (ret) in copy_user_segment_list()
34 ret = -EFAULT; in copy_user_segment_list()
36 return ret; in copy_user_segment_list()
44 int ret; in kimage_alloc_init() local
62 ret = copy_user_segment_list(image, nr_segments, segments); in kimage_alloc_init()
63 if (ret) in kimage_alloc_init()
72 ret = sanity_check_segment_list(image); in kimage_alloc_init()
73 if (ret) in kimage_alloc_init()
[all …]
Dcpu_pm.c31 int ret; in cpu_pm_notify() local
40 ret = raw_notifier_call_chain(&cpu_pm_notifier.chain, event, NULL); in cpu_pm_notify()
44 return notifier_to_errno(ret); in cpu_pm_notify()
50 int ret; in cpu_pm_notify_robust() local
54 ret = raw_notifier_call_chain_robust(&cpu_pm_notifier.chain, event_up, event_down, NULL); in cpu_pm_notify_robust()
58 return notifier_to_errno(ret); in cpu_pm_notify_robust()
73 int ret; in cpu_pm_register_notifier() local
76 ret = raw_notifier_chain_register(&cpu_pm_notifier.chain, nb); in cpu_pm_register_notifier()
78 return ret; in cpu_pm_register_notifier()
93 int ret; in cpu_pm_unregister_notifier() local
[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 …]
/kernel/futex/
Dcore.c689 int ret; in fault_in_user_writeable() local
692 ret = fixup_user_fault(mm, (unsigned long)uaddr, in fault_in_user_writeable()
696 return ret < 0 ? ret : 0; in fault_in_user_writeable()
721 int ret; in cmpxchg_futex_value_locked() local
724 ret = futex_atomic_cmpxchg_inatomic(curval, uaddr, uval, newval); in cmpxchg_futex_value_locked()
727 return ret; in cmpxchg_futex_value_locked()
732 int ret; in get_futex_value_locked() local
735 ret = __get_user(*dest, from); in get_futex_value_locked()
738 return ret ? -EFAULT : 0; in get_futex_value_locked()
1021 int ret; in attach_to_pi_state() local
[all …]
/kernel/livepatch/
Dcore.c198 int i, cnt, ret; in klp_resolve_symbols() local
254 ret = klp_find_object_symbol(sym_vmlinux ? NULL : sym_objname, in klp_resolve_symbols()
256 if (ret) in klp_resolve_symbols()
257 return ret; in klp_resolve_symbols()
293 int cnt, ret; in klp_apply_section_relocs() local
313 ret = klp_resolve_symbols(sechdrs, strtab, symndx, sec, sec_objname); in klp_apply_section_relocs()
314 if (ret) in klp_apply_section_relocs()
315 return ret; in klp_apply_section_relocs()
337 int ret; in enabled_store() local
340 ret = kstrtobool(buf, &enabled); in enabled_store()
[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()
131 int ret; in dma_declare_coherent_memory() local
133 ret = dma_init_coherent_memory(phys_addr, device_addr, size, &mem); in dma_declare_coherent_memory()
134 if (ret) in dma_declare_coherent_memory()
135 return ret; in dma_declare_coherent_memory()
[all …]
/kernel/power/
Dqos.c250 int ret = pm_qos_update_target(req->qos, &req->node, action, value); in cpu_latency_qos_apply() local
251 if (ret > 0) in cpu_latency_qos_apply()
390 int ret; in cpu_latency_qos_write() local
392 ret = kstrtos32_from_user(buf, count, 16, &value); in cpu_latency_qos_write()
393 if (ret) in cpu_latency_qos_write()
394 return ret; in cpu_latency_qos_write()
418 int ret; in cpu_latency_qos_init() local
420 ret = misc_register(&cpu_latency_qos_miscdev); in cpu_latency_qos_init()
421 if (ret < 0) in cpu_latency_qos_init()
425 return ret; in cpu_latency_qos_init()
[all …]

12345678910