/kernel/trace/ |
D | trace_selftest.c | 62 int cpu, ret = 0; in trace_test_buffer() local 79 ret = trace_test_buffer_cpu(tr, cpu); in trace_test_buffer() 80 if (ret) in trace_test_buffer() 90 return ret; in trace_test_buffer() 114 int ret; in trace_selftest_startup_dynamic_tracing() local 138 ret = trace->init(tr); in trace_selftest_startup_dynamic_tracing() 139 if (ret) { in trace_selftest_startup_dynamic_tracing() 140 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_dynamic_tracing() 148 ret = trace_test_buffer(tr, &count); in trace_selftest_startup_dynamic_tracing() 149 if (ret) in trace_selftest_startup_dynamic_tracing() [all …]
|
D | trace_functions_graph.c | 47 int cpu, ret; in graph_trace_init() local 52 ret = register_ftrace_graph(&trace_graph_return, in graph_trace_init() 54 if (ret) in graph_trace_init() 55 return ret; in graph_trace_init() 80 int ret; in print_graph_cpu() local 90 ret = trace_seq_printf(s, " "); in print_graph_cpu() 99 ret = trace_seq_printf(s, " "); in print_graph_cpu() 100 if (!ret) in print_graph_cpu() 103 ret = trace_seq_printf(s, "%d) ", cpu); in print_graph_cpu() 104 if (!ret) in print_graph_cpu() [all …]
|
D | ftrace.c | 183 int ret = 0; in __unregister_ftrace_function() local 203 ret = -1; in __unregister_ftrace_function() 229 return ret; in __unregister_ftrace_function() 575 int ret; in ftrace_code_disable() local 579 ret = ftrace_make_nop(mod, rec, mcount_addr); in ftrace_code_disable() 580 if (ret) { in ftrace_code_disable() 581 ftrace_bug(ret, ip); in ftrace_code_disable() 887 int ret; in ftrace_avail_open() local 898 ret = seq_open(file, &show_ftrace_seq_ops); in ftrace_avail_open() 899 if (!ret) { in ftrace_avail_open() [all …]
|
D | trace_mmiotrace.c | 60 int ret = 0; in mmio_print_pcidev() local 66 ret += trace_seq_printf(s, "PCIDEV %02x%02x %04x%04x %x", in mmio_print_pcidev() 76 ret += trace_seq_printf(s, " %llx", in mmio_print_pcidev() 82 ret += trace_seq_printf(s, " %llx", in mmio_print_pcidev() 87 ret += trace_seq_printf(s, " %s\n", drv->name); in mmio_print_pcidev() 89 ret += trace_seq_printf(s, " \n"); in mmio_print_pcidev() 90 return ret; in mmio_print_pcidev() 138 ssize_t ret; in mmio_read() local 165 ret = trace_seq_to_user(s, ubuf, cnt); in mmio_read() 166 return (ret == -EBUSY) ? 0 : ret; in mmio_read() [all …]
|
D | trace.c | 253 int ret; in set_buf_size() local 257 ret = strict_strtoul(str, 0, &buf_size); in set_buf_size() 259 if (ret < 0 || buf_size == 0) in set_buf_size() 348 int ret; in trace_seq_printf() local 354 ret = vsnprintf(s->buffer + s->len, len, fmt, ap); in trace_seq_printf() 358 if (ret >= len) in trace_seq_printf() 361 s->len += ret; in trace_seq_printf() 468 int ret; local 476 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt); 477 if (ret) [all …]
|
D | trace_sched_switch.c | 77 int ret; in tracing_sched_register() local 79 ret = register_trace_sched_wakeup(probe_sched_wakeup); in tracing_sched_register() 80 if (ret) { in tracing_sched_register() 83 return ret; in tracing_sched_register() 86 ret = register_trace_sched_wakeup_new(probe_sched_wakeup); in tracing_sched_register() 87 if (ret) { in tracing_sched_register() 93 ret = register_trace_sched_switch(probe_sched_switch); in tracing_sched_register() 94 if (ret) { in tracing_sched_register() 100 return ret; in tracing_sched_register() 105 return ret; in tracing_sched_register()
|
D | trace_sched_wakeup.c | 273 int ret; in start_wakeup_tracer() local 275 ret = register_trace_sched_wakeup(probe_wakeup); in start_wakeup_tracer() 276 if (ret) { in start_wakeup_tracer() 282 ret = register_trace_sched_wakeup_new(probe_wakeup); in start_wakeup_tracer() 283 if (ret) { in start_wakeup_tracer() 289 ret = register_trace_sched_switch(probe_wakeup_sched_switch); in start_wakeup_tracer() 290 if (ret) { in start_wakeup_tracer() 394 int ret; in init_wakeup_tracer() local 396 ret = register_tracer(&wakeup_tracer); in init_wakeup_tracer() 397 if (ret) in init_wakeup_tracer() [all …]
|
/kernel/ |
D | test_kprobes.c | 58 int ret; in test_kprobe() local 60 ret = register_kprobe(&kp); in test_kprobe() 61 if (ret < 0) { in test_kprobe() 63 "register_kprobe returned %d\n", ret); in test_kprobe() 64 return ret; in test_kprobe() 67 ret = target(rand1); in test_kprobe() 115 int ret; in test_kprobes() local 119 ret = register_kprobes(kps, 2); in test_kprobes() 120 if (ret < 0) { in test_kprobes() 122 "register_kprobes returned %d\n", ret); in test_kprobes() [all …]
|
D | uid16.c | 22 long ret = sys_chown(filename, low2highuid(user), low2highgid(group)); in SYSCALL_DEFINE3() local 24 asmlinkage_protect(3, ret, filename, user, group); in SYSCALL_DEFINE3() 25 return ret; in SYSCALL_DEFINE3() 30 long ret = sys_lchown(filename, low2highuid(user), low2highgid(group)); in SYSCALL_DEFINE3() local 32 asmlinkage_protect(3, ret, filename, user, group); in SYSCALL_DEFINE3() 33 return ret; in SYSCALL_DEFINE3() 38 long ret = sys_fchown(fd, low2highuid(user), low2highgid(group)); in SYSCALL_DEFINE3() local 40 asmlinkage_protect(3, ret, fd, user, group); in SYSCALL_DEFINE3() 41 return ret; in SYSCALL_DEFINE3() 46 long ret = sys_setregid(low2highgid(rgid), low2highgid(egid)); in SYSCALL_DEFINE2() local [all …]
|
D | futex.c | 325 int ret; in get_futex_value_locked() local 328 ret = __copy_from_user_inatomic(dest, from, sizeof(u32)); in get_futex_value_locked() 331 return ret ? -EFAULT : 0; in get_futex_value_locked() 341 int ret = -EFAULT; in futex_handle_fault() local 344 return ret; in futex_handle_fault() 355 if (ret & VM_FAULT_OOM) in futex_handle_fault() 356 ret = -ENOMEM; in futex_handle_fault() 359 ret = 0; in futex_handle_fault() 367 return ret; in futex_handle_fault() 578 int ret = (p->flags & PF_EXITPIDONE) ? -ESRCH : -EAGAIN; in lookup_pi_state() local [all …]
|
D | ptrace.c | 96 int ret = -ESRCH; in ptrace_check_attach() local 107 ret = 0; in ptrace_check_attach() 116 ret = -ESRCH; in ptrace_check_attach() 121 if (!ret && !kill) in ptrace_check_attach() 122 ret = wait_task_inactive(child, TASK_TRACED) ? 0 : -ESRCH; in ptrace_check_attach() 125 return ret; in ptrace_check_attach() 437 int ret = -EIO; in ptrace_request() local 452 ret = ptrace_setoptions(child, data); in ptrace_request() 455 ret = put_user(child->ptrace_message, (unsigned long __user *) data); in ptrace_request() 459 ret = ptrace_getsiginfo(child, &siginfo); in ptrace_request() [all …]
|
D | notifier.c | 78 int ret = NOTIFY_DONE; in notifier_call_chain() local 93 ret = nb->notifier_call(nb, val, v); in notifier_call_chain() 98 if ((ret & NOTIFY_STOP_MASK) == NOTIFY_STOP_MASK) in notifier_call_chain() 103 return ret; in notifier_call_chain() 124 int ret; in atomic_notifier_chain_register() local 127 ret = notifier_chain_register(&nh->head, n); in atomic_notifier_chain_register() 129 return ret; in atomic_notifier_chain_register() 146 int ret; in atomic_notifier_chain_unregister() local 149 ret = notifier_chain_unregister(&nh->head, n); in atomic_notifier_chain_unregister() 152 return ret; in atomic_notifier_chain_unregister() [all …]
|
D | rtmutex-tester.c | 58 int i, id, ret = -EINVAL; in handle_op() local 90 return ret; in handle_op() 99 return ret; in handle_op() 112 return ret; in handle_op() 116 ret = rt_mutex_lock_interruptible(&mutexes[id], 0); in handle_op() 118 td->mutexes[id] = ret ? 0 : 4; in handle_op() 119 return ret ? -EINTR : 0; in handle_op() 124 return ret; in handle_op() 150 return ret; in handle_op() 238 int ret; in schedule_rt_mutex_test() local [all …]
|
D | capability.c | 135 int ret; in cap_get_target_pid() local 144 ret = -ESRCH; in cap_get_target_pid() 146 ret = security_capget(target, pEp, pIp, pPp); in cap_get_target_pid() 150 ret = security_capget(current, pEp, pIp, pPp); in cap_get_target_pid() 152 return ret; in cap_get_target_pid() 166 int ret = 0; in SYSCALL_DEFINE2() local 171 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 172 if (ret != 0) in SYSCALL_DEFINE2() 173 return ret; in SYSCALL_DEFINE2() 181 ret = cap_get_target_pid(pid, &pE, &pI, &pP); in SYSCALL_DEFINE2() [all …]
|
D | compat.c | 108 long ret; in compat_nanosleep_restart() local 113 ret = hrtimer_nanosleep_restart(restart); in compat_nanosleep_restart() 116 if (ret) { in compat_nanosleep_restart() 123 return ret; in compat_nanosleep_restart() 131 long ret; in compat_sys_nanosleep() local 141 ret = hrtimer_nanosleep(&tu, in compat_sys_nanosleep() 146 if (ret) { in compat_sys_nanosleep() 157 return ret; in compat_sys_nanosleep() 245 long ret; in compat_sys_sigpending() local 249 ret = sys_sigpending((old_sigset_t __user *) &s); in compat_sys_sigpending() [all …]
|
D | params.c | 145 int ret; in parse_args() local 150 ret = parse_one(param, val, params, num, unknown); in parse_args() 155 switch (ret) { in parse_args() 159 return ret; in parse_args() 164 return ret; in parse_args() 171 return ret; in parse_args() 184 int ret; \ 187 ret = strtolfn(val, 0, &l); \ 188 if (ret == -EINVAL || ((type)l != l)) \ 254 int boolval, ret; in param_set_invbool() local [all …]
|
D | workqueue.c | 163 int ret; in queue_work() local 165 ret = queue_work_on(get_cpu(), wq, work); in queue_work() 168 return ret; in queue_work() 186 int ret = 0; in queue_work_on() local 191 ret = 1; in queue_work_on() 193 return ret; in queue_work_on() 236 int ret = 0; in queue_delayed_work_on() local 256 ret = 1; in queue_delayed_work_on() 258 return ret; in queue_delayed_work_on() 482 int ret = -1; in try_to_grab_pending() local [all …]
|
D | stop_machine.c | 155 int i, ret; in __stop_machine() local 180 ret = active.fnret; in __stop_machine() 182 return ret; in __stop_machine() 187 int ret; in stop_machine() local 189 ret = stop_machine_create(); in stop_machine() 190 if (ret) in stop_machine() 191 return ret; in stop_machine() 194 ret = __stop_machine(fn, data, cpus); in stop_machine() 197 return ret; in stop_machine()
|
D | kprobes.c | 125 int ret = 0; in check_safety() local 127 ret = freeze_processes(); in check_safety() 128 if (ret == 0) { in check_safety() 134 ret = -1; in check_safety() 144 return ret; in check_safety() 202 kprobe_opcode_t *ret; in get_insn_slot() local 204 ret = __get_insn_slot(); in get_insn_slot() 206 return ret; in get_insn_slot() 373 int ret = 0; in aggr_break_handler() local 377 ret = 1; in aggr_break_handler() [all …]
|
D | kmod.c | 71 int ret; in request_module() local 82 ret = vsnprintf(module_name, MODULE_NAME_LEN, fmt, args); in request_module() 84 if (ret >= MODULE_NAME_LEN) in request_module() 111 ret = call_usermodehelper(modprobe_path, argv, envp, 1); in request_module() 113 return ret; in request_module() 209 int ret; in wait_for_helper() local 220 sys_wait4(pid, (int __user *)&ret, 0, NULL); in wait_for_helper() 227 if (ret) in wait_for_helper() 228 sub_info->retval = ret; in wait_for_helper() 504 int ret; in call_usermodehelper_pipe() local [all …]
|
D | marker.c | 482 int ret = 0; in set_marker() local 496 ret = marker_set_format(entry, elem->format); in set_marker() 497 if (ret) in set_marker() 498 return ret; in set_marker() 547 ret = try_module_get(__module_text_address( in set_marker() 549 BUG_ON(!ret); in set_marker() 550 ret = tracepoint_probe_register_noupdate( in set_marker() 554 ret = tracepoint_probe_unregister_noupdate( in set_marker() 567 return ret; in set_marker() 578 int ret; in disable_marker() local [all …]
|
D | pm_qos_params.c | 352 int ret; in pm_qos_power_open() local 360 ret = pm_qos_add_requirement(pm_qos_class, name, in pm_qos_power_open() 362 if (ret >= 0) { in pm_qos_power_open() 403 int ret = 0; in pm_qos_power_init() local 405 ret = register_pm_qos_misc(&cpu_dma_pm_qos); in pm_qos_power_init() 406 if (ret < 0) { in pm_qos_power_init() 408 return ret; in pm_qos_power_init() 410 ret = register_pm_qos_misc(&network_lat_pm_qos); in pm_qos_power_init() 411 if (ret < 0) { in pm_qos_power_init() 413 return ret; in pm_qos_power_init() [all …]
|
D | lockdep.c | 107 int ret = debug_locks_off(); in debug_locks_off_graph_unlock() local 111 return ret; in debug_locks_off_graph_unlock() 995 unsigned long ret = 1; in __lockdep_count_forward_deps() local 1004 ret += __lockdep_count_forward_deps(entry->class, depth + 1); in __lockdep_count_forward_deps() 1006 return ret; in __lockdep_count_forward_deps() 1011 unsigned long ret, flags; in lockdep_count_forward_deps() local 1015 ret = __lockdep_count_forward_deps(class, 0); in lockdep_count_forward_deps() 1019 return ret; in lockdep_count_forward_deps() 1026 unsigned long ret = 1; in __lockdep_count_backward_deps() local 1034 ret += __lockdep_count_backward_deps(entry->class, depth + 1); in __lockdep_count_backward_deps() [all …]
|
/kernel/power/ |
D | fbearlysuspend.c | 33 int ret; in stop_drawing_early_suspend() local 41 ret = wait_event_timeout(fb_state_wq, in stop_drawing_early_suspend() 70 int ret; in wait_for_fb_sleep_show() local 72 ret = wait_event_interruptible(fb_state_wq, in wait_for_fb_sleep_show() 74 if (ret && fb_state == FB_STATE_DRAWING_OK) in wait_for_fb_sleep_show() 75 return ret; in wait_for_fb_sleep_show() 85 int ret; in wait_for_fb_wake_show() local 95 ret = wait_event_interruptible(fb_state_wq, in wait_for_fb_wake_show() 97 if (ret && fb_state != FB_STATE_DRAWING_OK) in wait_for_fb_wake_show() 98 return ret; in wait_for_fb_wake_show() [all …]
|
/kernel/irq/ |
D | manage.c | 149 int ret; in irq_select_affinity_usr() local 152 ret = do_irq_select_affinity(irq, desc); in irq_select_affinity_usr() 155 return ret; in irq_select_affinity_usr() 264 int ret = -ENXIO; in set_irq_wake_real() local 267 ret = desc->chip->set_wake(irq, on); in set_irq_wake_real() 269 return ret; in set_irq_wake_real() 288 int ret = 0; in set_irq_wake() local 296 ret = set_irq_wake_real(irq, on); in set_irq_wake() 297 if (ret) in set_irq_wake() 306 ret = set_irq_wake_real(irq, on); in set_irq_wake() [all …]
|