Home
last modified time | relevance | path

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

1234567891011

/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()
190 int ret = -1; in trace_selftest_ops() local
324 ret = 0; in trace_selftest_ops()
348 ret = -1; in trace_selftest_ops()
352 return ret; in trace_selftest_ops()
363 int ret; in trace_selftest_startup_dynamic_tracing() local
386 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing()
[all …]
Dtrace_dynevent.c25 bool ret = false; in trace_event_dyn_try_get_ref() local
34 ret = true; in trace_event_dyn_try_get_ref()
38 return ret; in trace_event_dyn_try_get_ref()
76 int argc, ret = -ENOENT; in dyn_event_release() local
85 ret = -EINVAL; in dyn_event_release()
92 ret = -EINVAL; in dyn_event_release()
105 ret = -EINVAL; in dyn_event_release()
117 ret = pos->ops->free(pos); in dyn_event_release()
118 if (ret) in dyn_event_release()
125 return ret; in dyn_event_release()
[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 …]
Dtrace_events_synth.c52 int ret = 0; in errpos() local
58 ret = err_pos(last_cmd, str); in errpos()
61 return ret; in errpos()
141 int ret = 0; in synth_event_define_fields() local
148 ret = trace_define_field(call, type, name, offset, size, in synth_event_define_fields()
150 if (ret) in synth_event_define_fields()
166 return ret; in synth_event_define_fields()
454 int ret; in trace_string() local
468 ret = kern_fetch_store_string((unsigned long)str_val, &entry->fields[*n_u64], entry); in trace_string()
476 ret = strncpy_from_user_nofault(str_field, (const void __user *)str_val, STR_VAR_LEN_MAX); in trace_string()
[all …]
Dtrace_kprobe.c117 bool ret; in trace_kprobe_module_exist() local
126 ret = !!find_module(tk->symbol); in trace_kprobe_module_exist()
130 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, false); 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 …]
Dfgraph.c68 ftrace_push_return_trace(unsigned long ret, unsigned long func, in ftrace_push_return_trace() argument
96 current->ret_stack[index].ret = ret; in ftrace_push_return_trace()
122 int function_graph_enter(unsigned long ret, unsigned long func, in function_graph_enter() argument
135 ftrace_find_rec_direct(ret - MCOUNT_INSN_SIZE)) in function_graph_enter()
141 if (ftrace_push_return_trace(ret, func, frame_pointer, retp)) in function_graph_enter()
158 ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret, in ftrace_pop_return_trace() argument
169 *ret = (unsigned long)panic; in ftrace_pop_return_trace()
195 current->ret_stack[index].ret); in ftrace_pop_return_trace()
196 *ret = (unsigned long)panic; in ftrace_pop_return_trace()
201 *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.c114 unsigned long ret; in get_user_stack_nth() local
119 if (copy_from_user(&ret, (void __force __user *) addr, sizeof(ret))) in get_user_stack_nth()
122 return ret; in get_user_stack_nth()
149 long ret; in fetch_store_string() local
159 ret = strlcpy(dst, current->comm, maxlen); in fetch_store_string()
161 ret = strncpy_from_user(dst, src, maxlen); in fetch_store_string()
162 if (ret >= 0) { in fetch_store_string()
163 if (ret == maxlen) in fetch_store_string()
164 dst[ret - 1] = '\0'; in fetch_store_string()
171 ret++; in fetch_store_string()
[all …]
Dtrace_events_trigger.c206 int ret; in event_trigger_regex_open() local
208 ret = security_locked_down(LOCKDOWN_TRACEFS); in event_trigger_regex_open()
209 if (ret) in event_trigger_regex_open()
210 return ret; in event_trigger_regex_open()
233 ret = seq_open(file, &event_triggers_seq_ops); in event_trigger_regex_open()
234 if (!ret) { in event_trigger_regex_open()
242 return ret; in event_trigger_regex_open()
249 int ret = -EINVAL; in trigger_process_regex() local
263 ret = p->parse(p, file, buff, command, next); in trigger_process_regex()
270 return ret; in trigger_process_regex()
[all …]
Dtrace_events.c173 ret = __trace_define_field(&ftrace_generic_fields, #type, \
176 if (ret) \
177 return ret;
180 ret = __trace_define_field(&ftrace_common_fields, #type, \
185 if (ret) \
186 return ret;
190 int ret; in trace_define_generic_fields() local
198 return ret; in trace_define_generic_fields()
203 int ret; in trace_define_common_fields() local
212 return ret; in trace_define_common_fields()
[all …]
Dtrace_eprobe.c109 int ret = unregister_trace_eprobe(ep); in eprobe_dyn_event_release() local
111 if (!ret) in eprobe_dyn_event_release()
113 return ret; in eprobe_dyn_event_release()
198 int ret = -ENOMEM; in alloc_event_probe() local
219 ret = trace_probe_init(&ep->tp, this_event, group, false); in alloc_event_probe()
220 if (ret < 0) in alloc_event_probe()
227 return ERR_PTR(ret); in alloc_event_probe()
235 int ret = -ENOENT; in trace_eprobe_tp_arg_update() local
253 ret = 0; in trace_eprobe_tp_arg_update()
258 return ret; in trace_eprobe_tp_arg_update()
[all …]
/kernel/futex/
Dwaitwake.c149 int ret; in futex_wake() local
156 ret = get_futex_key(uaddr, flags & FLAGS_SHARED, &key, FUTEX_READ); in futex_wake()
157 if (unlikely(ret != 0)) in futex_wake()
158 return ret; in futex_wake()
164 return ret; in futex_wake()
172 ret = -EINVAL; in futex_wake()
180 trace_android_vh_futex_wake_this(ret, nr_wake, target_nr, this->task); in futex_wake()
182 if (++ret >= nr_wake) in futex_wake()
190 return ret; in futex_wake()
199 int oldval, ret; in futex_atomic_op_inuser() local
[all …]
Drequeue.c274 int ret; in futex_proxy_trylock_atomic() local
319 ret = futex_lock_pi_atomic(pifutex, hb2, key2, ps, top_waiter->task, in futex_proxy_trylock_atomic()
321 if (ret == 1) { in futex_proxy_trylock_atomic()
329 } else if (ret < 0) { in futex_proxy_trylock_atomic()
331 futex_requeue_pi_complete(top_waiter, ret); in futex_proxy_trylock_atomic()
343 return ret; in futex_proxy_trylock_atomic()
368 int task_count = 0, ret; in futex_requeue() local
427 ret = get_futex_key(uaddr1, flags & FLAGS_SHARED, &key1, FUTEX_READ); in futex_requeue()
428 if (unlikely(ret != 0)) in futex_requeue()
429 return ret; in futex_requeue()
[all …]
Dpi.c208 int ret; in attach_to_pi_state() local
304 ret = -EINVAL; in attach_to_pi_state()
308 ret = -EAGAIN; in attach_to_pi_state()
312 ret = -EFAULT; in attach_to_pi_state()
317 return ret; in attach_to_pi_state()
447 int ret = handle_exit_race(uaddr, uval, p); in attach_to_pi_owner() local
459 if (ret == -EBUSY) in attach_to_pi_owner()
463 return ret; in attach_to_pi_owner()
523 int ret; in futex_lock_pi_atomic() local
570 ret = lock_pi_update_atomic(uaddr, uval, newval); in futex_lock_pi_atomic()
[all …]
/kernel/
Dkexec_file.c55 int ret = -ENOEXEC; in kexec_image_probe_default() local
58 ret = (*fops)->probe(buf, buf_len); in kexec_image_probe_default()
59 if (!ret) { in kexec_image_probe_default()
61 return ret; in kexec_image_probe_default()
65 return ret; in kexec_image_probe_default()
132 int ret; in kexec_kernel_verify_pe_sig() local
134 ret = verify_pefile_signature(kernel, kernel_len, in kexec_kernel_verify_pe_sig()
137 if (ret == -ENOKEY && IS_ENABLED(CONFIG_INTEGRITY_PLATFORM_KEYRING)) { in kexec_kernel_verify_pe_sig()
138 ret = verify_pefile_signature(kernel, kernel_len, in kexec_kernel_verify_pe_sig()
142 return ret; in kexec_kernel_verify_pe_sig()
[all …]
Dresource_kunit.c32 bool ret; member
37 .r1 = &r1, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true,
39 .r1 = &r2, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true,
41 .r1 = &r3, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true,
43 .r1 = &r4, .r2 = &r0, .r.start = R0_START, .r.end = R0_END, .ret = true,
45 .r1 = &r2, .r2 = &r1, .ret = false,
47 .r1 = &r3, .r2 = &r1, .ret = false,
49 .r1 = &r4, .r2 = &r1, .r.start = R1_START, .r.end = R4_END, .ret = true,
51 .r1 = &r2, .r2 = &r3, .ret = false,
53 .r1 = &r2, .r2 = &r4, .r.start = R4_START, .r.end = R4_END, .ret = true,
[all …]
Dnotifier.c72 int ret = NOTIFY_DONE; in notifier_call_chain() local
87 ret = nb->notifier_call(nb, val, v); in notifier_call_chain()
92 if (ret & NOTIFY_STOP_MASK) in notifier_call_chain()
97 return ret; in notifier_call_chain()
120 int ret, nr = 0; in notifier_call_chain_robust() local
122 ret = notifier_call_chain(nl, val_up, v, -1, &nr); in notifier_call_chain_robust()
123 if (ret & NOTIFY_STOP_MASK) in notifier_call_chain_robust()
126 return ret; in notifier_call_chain_robust()
147 int ret; in atomic_notifier_chain_register() local
150 ret = notifier_chain_register(&nh->head, n, false); in atomic_notifier_chain_register()
[all …]
Dcpu.c175 int ret, cnt; in cpuhp_invoke_callback() local
192 ret = cb(cpu); in cpuhp_invoke_callback()
193 trace_cpuhp_exit(cpu, st->state, state, ret); in cpuhp_invoke_callback()
194 return ret; in cpuhp_invoke_callback()
202 ret = cbm(cpu, node); in cpuhp_invoke_callback()
203 trace_cpuhp_exit(cpu, st->state, state, ret); in cpuhp_invoke_callback()
204 return ret; in cpuhp_invoke_callback()
214 ret = cbm(cpu, node); in cpuhp_invoke_callback()
215 trace_cpuhp_exit(cpu, st->state, state, ret); in cpuhp_invoke_callback()
216 if (ret) { in cpuhp_invoke_callback()
[all …]
Dptrace.c47 int ret; in ptrace_access_vm() local
61 ret = __access_remote_vm(mm, addr, buf, len, gup_flags); in ptrace_access_vm()
64 return ret; in ptrace_access_vm()
196 bool ret = false; in ptrace_freeze_traced() local
200 return ret; in ptrace_freeze_traced()
206 ret = true; in ptrace_freeze_traced()
210 return ret; in ptrace_freeze_traced()
251 int ret = -ESRCH; in ptrace_check_attach() local
267 ret = 0; in ptrace_check_attach()
271 if (!ret && !ignore_state && in ptrace_check_attach()
[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 …]
/kernel/locking/
Dtest-ww_mutex.c62 int ret; in __test_mutex() local
81 ret = 0; in __test_mutex()
84 ret = -EINVAL; in __test_mutex()
90 ret = wait_for_completion_timeout(&mtx.done, TIMEOUT); in __test_mutex()
95 if (ret) { in __test_mutex()
98 ret = -EINVAL; in __test_mutex()
103 return ret; in __test_mutex()
109 int ret; in test_mutex() local
113 ret = __test_mutex(i); in test_mutex()
114 if (ret) in test_mutex()
[all …]
/kernel/livepatch/
Dcore.c197 int i, cnt, ret; in klp_resolve_symbols() local
253 ret = klp_find_object_symbol(sym_vmlinux ? NULL : sym_objname, in klp_resolve_symbols()
255 if (ret) in klp_resolve_symbols()
256 return ret; in klp_resolve_symbols()
292 int cnt, ret; in klp_apply_section_relocs() local
312 ret = klp_resolve_symbols(sechdrs, strtab, symndx, sec, sec_objname); in klp_apply_section_relocs()
313 if (ret) in klp_apply_section_relocs()
314 return ret; in klp_apply_section_relocs()
337 int ret; in enabled_store() local
340 ret = kstrtobool(buf, &enabled); in enabled_store()
[all …]
/kernel/irq/
Dmsi.c63 int ret; in msi_insert_desc() local
66 ret = xa_insert(&md->__store, index, desc, GFP_KERNEL); in msi_insert_desc()
67 if (ret) in msi_insert_desc()
69 return ret; in msi_insert_desc()
106 int ret; in msi_add_simple_msi_descs() local
114 ret = msi_insert_desc(dev->msi.data, desc, idx); in msi_add_simple_msi_descs()
115 if (ret) in msi_add_simple_msi_descs()
121 ret = -ENOMEM; in msi_add_simple_msi_descs()
124 return ret; in msi_add_simple_msi_descs()
200 int ret; in msi_setup_device_data() local
[all …]
/kernel/power/
Dqos.c248 int ret = pm_qos_update_target(req->qos, &req->node, action, value); in cpu_latency_qos_apply() local
249 if (ret > 0) in cpu_latency_qos_apply()
388 int ret; in cpu_latency_qos_write() local
390 ret = kstrtos32_from_user(buf, count, 16, &value); in cpu_latency_qos_write()
391 if (ret) in cpu_latency_qos_write()
392 return ret; in cpu_latency_qos_write()
416 int ret; in cpu_latency_qos_init() local
418 ret = misc_register(&cpu_latency_qos_miscdev); in cpu_latency_qos_init()
419 if (ret < 0) in cpu_latency_qos_init()
423 return ret; in cpu_latency_qos_init()
[all …]

1234567891011