/kernel/trace/ |
D | trace_probe.c | 344 static int parse_probe_vars(char *arg, const struct fetch_type *t, in parse_probe_vars() argument 351 if (strcmp(arg, "retval") == 0) { in parse_probe_vars() 356 } else if (strncmp(arg, "stack", 5) == 0) { in parse_probe_vars() 357 if (arg[5] == '\0') { in parse_probe_vars() 365 } else if (isdigit(arg[5])) { in parse_probe_vars() 366 ret = kstrtoul(arg + 5, 10, ¶m); in parse_probe_vars() 375 } else if (strcmp(arg, "comm") == 0) { in parse_probe_vars() 387 static int parse_probe_arg(char *arg, const struct fetch_type *t, in parse_probe_arg() argument 396 switch (arg[0]) { in parse_probe_arg() 398 ret = parse_probe_vars(arg + 1, t, f, is_return, is_kprobe); in parse_probe_arg() [all …]
|
D | trace_uprobe.c | 363 char *arg, *event, *group, *filename; in create_trace_uprobe() local 389 arg = strchr(event, '/'); in create_trace_uprobe() 391 if (arg) { in create_trace_uprobe() 393 event = arg + 1; in create_trace_uprobe() 434 arg = strchr(argv[1], ':'); in create_trace_uprobe() 435 if (!arg) { in create_trace_uprobe() 440 *arg++ = '\0'; in create_trace_uprobe() 454 ret = kstrtoul(arg, 0, &offset); in create_trace_uprobe() 506 arg = strchr(argv[i], '='); in create_trace_uprobe() 507 if (arg) { in create_trace_uprobe() [all …]
|
D | trace_probe.h | 347 extern int traceprobe_parse_probe_arg(char *arg, ssize_t *size, 354 extern void traceprobe_update_arg(struct probe_arg *arg); 355 extern void traceprobe_free_probe_arg(struct probe_arg *arg);
|
D | blktrace.c | 551 char __user *arg) in blk_trace_setup() argument 556 ret = copy_from_user(&buts, arg, sizeof(buts)); in blk_trace_setup() 564 if (copy_to_user(arg, &buts, sizeof(buts))) { in blk_trace_setup() 575 char __user *arg) in compat_blk_trace_setup() argument 581 if (copy_from_user(&cbuts, arg, sizeof(cbuts))) in compat_blk_trace_setup() 597 if (copy_to_user(arg, &buts.name, ARRAY_SIZE(buts.name))) { in compat_blk_trace_setup() 654 int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) in blk_trace_ioctl() argument 669 ret = blk_trace_setup(q, b, bdev->bd_dev, bdev, arg); in blk_trace_ioctl() 674 ret = compat_blk_trace_setup(q, b, bdev->bd_dev, bdev, arg); in blk_trace_ioctl()
|
D | ring_buffer_benchmark.c | 379 static int ring_buffer_consumer_thread(void *arg) in ring_buffer_consumer_thread() argument 399 static int ring_buffer_producer_thread(void *arg) in ring_buffer_producer_thread() argument
|
D | trace_kprobe.c | 609 char *arg; in create_trace_kprobe() local 720 arg = strchr(argv[i], '='); in create_trace_kprobe() 721 if (arg) { in create_trace_kprobe() 722 *arg++ = '\0'; in create_trace_kprobe() 725 arg = argv[i]; in create_trace_kprobe() 753 ret = traceprobe_parse_probe_arg(arg, &tk->tp.size, parg, in create_trace_kprobe()
|
/kernel/irq/ |
D | msi.c | 124 unsigned int nr_irqs, void *arg) in msi_domain_alloc() argument 128 irq_hw_number_t hwirq = ops->get_hwirq(info, arg); in msi_domain_alloc() 135 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in msi_domain_alloc() 141 ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); in msi_domain_alloc() 177 msi_alloc_info_t *arg) in msi_domain_ops_get_hwirq() argument 179 return arg->hwirq; in msi_domain_ops_get_hwirq() 183 int nvec, msi_alloc_info_t *arg) in msi_domain_ops_prepare() argument 185 memset(arg, 0, sizeof(*arg)); in msi_domain_ops_prepare() 189 static void msi_domain_ops_set_desc(msi_alloc_info_t *arg, in msi_domain_ops_set_desc() argument 192 arg->desc = desc; in msi_domain_ops_set_desc() [all …]
|
D | irqdomain.c | 1186 unsigned int nr_irqs, void *arg) in irq_domain_alloc_irqs_recursive() argument 1195 nr_irqs, arg); in irq_domain_alloc_irqs_recursive() 1199 ret = domain->ops->alloc(domain, irq_base, nr_irqs, arg); in irq_domain_alloc_irqs_recursive() 1229 unsigned int nr_irqs, int node, void *arg, in __irq_domain_alloc_irqs() argument 1264 ret = irq_domain_alloc_irqs_recursive(domain, virq, nr_irqs, arg); in __irq_domain_alloc_irqs() 1317 void *arg) in irq_domain_alloc_irqs_parent() argument 1326 nr_irqs, arg); in irq_domain_alloc_irqs_parent()
|
D | resend.c | 31 static void resend_irqs(unsigned long arg) in resend_irqs() argument
|
/kernel/ |
D | stop_machine.c | 116 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument 119 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done }; in stop_one_cpu() 279 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg) in stop_two_cpus() argument 287 .data = arg, in stop_two_cpus() 294 .arg = &msdata, in stop_two_cpus() 328 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument 331 *work_buf = (struct cpu_stop_work){ .fn = fn, .arg = arg, }; in stop_one_cpu_nowait() 336 cpu_stop_fn_t fn, void *arg, in queue_stop_cpus_work() argument 353 work->arg = arg; in queue_stop_cpus_work() 365 cpu_stop_fn_t fn, void *arg) in __stop_cpus() argument [all …]
|
D | params.c | 127 void *arg, in parse_one() argument 129 const char *doing, void *arg)) in parse_one() 156 return handle_unknown(param, val, doing, arg); in parse_one() 222 void *arg, in parse_args() argument 224 const char *doing, void *arg)) in parse_args() 244 min_level, max_level, arg, unknown); in parse_args() 275 return strtolfn(val, 0, (type *)kp->arg); \ 280 *((type *)kp->arg)); \ 307 maybe_kfree_parameter(*(char **)kp->arg); in param_set_charp() 312 *(char **)kp->arg = kmalloc_parameter(strlen(val)+1); in param_set_charp() [all …]
|
D | crash_dump.c | 34 static int __init setup_elfcorehdr(char *arg) in setup_elfcorehdr() argument 37 if (!arg) in setup_elfcorehdr() 39 elfcorehdr_addr = memparse(arg, &end); in setup_elfcorehdr() 44 return end > arg ? 0 : -EINVAL; in setup_elfcorehdr()
|
D | kcov.c | 326 unsigned long arg) in kcov_ioctl_locked() argument 344 size = arg; in kcov_ioctl_locked() 362 if (arg == KCOV_TRACE_PC) in kcov_ioctl_locked() 364 else if (arg == KCOV_TRACE_CMP) in kcov_ioctl_locked() 388 unused = arg; in kcov_ioctl_locked() 404 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() argument 411 res = kcov_ioctl_locked(kcov, cmd, arg); in kcov_ioctl()
|
D | torture.c | 188 torture_onoff(void *arg) in torture_onoff() argument 400 static int torture_shuffle(void *arg) in torture_shuffle() argument 472 static int torture_shutdown(void *arg) in torture_shutdown() argument 594 static int torture_stutter(void *arg) in torture_stutter() argument 763 int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m, in _torture_create_kthread() argument 769 *tp = kthread_run(fn, arg, "%s", s); in _torture_create_kthread()
|
D | ptrace.c | 687 struct ptrace_peeksiginfo_args arg; in ptrace_peek_siginfo() local 692 ret = copy_from_user(&arg, (void __user *) addr, in ptrace_peek_siginfo() 697 if (arg.flags & ~PTRACE_PEEKSIGINFO_SHARED) in ptrace_peek_siginfo() 700 if (arg.nr < 0) in ptrace_peek_siginfo() 703 if (arg.flags & PTRACE_PEEKSIGINFO_SHARED) in ptrace_peek_siginfo() 708 for (i = 0; i < arg.nr; ) { in ptrace_peek_siginfo() 710 s32 off = arg.off + i; in ptrace_peek_siginfo()
|
D | reboot.c | 281 void __user *, arg) in SYSCALL_DEFINE4() argument 339 ret = strncpy_from_user(&buffer[0], arg, sizeof(buffer) - 1); in SYSCALL_DEFINE4()
|
D | resource.c | 418 u64 end, void *arg, int (*func)(u64, u64, void *)) in walk_iomem_res_desc() argument 432 ret = (*func)(res.start, res.end, arg); in walk_iomem_res_desc() 450 int walk_system_ram_res(u64 start, u64 end, void *arg, in walk_system_ram_res() argument 463 ret = (*func)(res.start, res.end, arg); in walk_system_ram_res() 480 void *arg, int (*func)(unsigned long, unsigned long, void *)) in walk_system_ram_range() argument 496 ret = (*func)(pfn, end_pfn - pfn, arg); in walk_system_ram_range() 507 static int __is_ram(unsigned long pfn, unsigned long nr_pages, void *arg) in __is_ram() argument
|
/kernel/power/ |
D | user.c | 200 unsigned long arg) in snapshot_ioctl() argument 260 error = put_user(in_suspend, (int __user *)arg); in snapshot_ioctl() 292 image_size = arg; in snapshot_ioctl() 302 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl() 308 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl() 319 error = put_user(offset, (loff_t __user *)arg); in snapshot_ioctl() 347 data->platform_support = !!arg; in snapshot_ioctl() 362 error = copy_from_user(&swap_area, (void __user *)arg, in snapshot_ioctl() 405 snapshot_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in snapshot_compat_ioctl() argument 413 compat_loff_t __user *uoffset = compat_ptr(arg); in snapshot_compat_ioctl() [all …]
|
/kernel/rcu/ |
D | rcuperf.c | 323 rcu_perf_reader(void *arg) in rcu_perf_reader() argument 327 long me = (long)arg; in rcu_perf_reader() 349 rcu_perf_writer(void *arg) in rcu_perf_writer() argument 353 long me = (long)arg; in rcu_perf_writer() 537 rcu_perf_shutdown(void *arg) in rcu_perf_shutdown() argument
|
D | rcutorture.c | 740 static int rcu_torture_boost(void *arg) in rcu_torture_boost() argument 833 rcu_torture_cbflood(void *arg) in rcu_torture_cbflood() argument 881 rcu_torture_fqs(void *arg) in rcu_torture_fqs() argument 912 rcu_torture_writer(void *arg) in rcu_torture_writer() argument 1050 rcu_torture_fakewriter(void *arg) in rcu_torture_fakewriter() argument 1151 rcu_torture_reader(void *arg) in rcu_torture_reader() argument 1334 rcu_torture_stats(void *arg) in rcu_torture_stats() argument 1459 static int rcu_torture_barrier_cbs(void *arg) in rcu_torture_barrier_cbs() argument 1461 long myid = (long)arg; in rcu_torture_barrier_cbs() 1495 static int rcu_torture_barrier(void *arg) in rcu_torture_barrier() argument
|
/kernel/sched/ |
D | core.c | 294 static void __hrtick_start(void *arg) in __hrtick_start() argument 296 struct rq *rq = arg; in __hrtick_start() 1066 struct migration_arg *arg = data; in migration_cpu_stop() local 1067 struct task_struct *p = arg->task; in migration_cpu_stop() 1091 rq = __migrate_task(rq, p, arg->dest_cpu); in migration_cpu_stop() 1093 p->wake_cpu = arg->dest_cpu; in migration_cpu_stop() 1204 struct migration_arg arg = { p, dest_cpu }; in __set_cpus_allowed_ptr() local 1207 stop_one_cpu(cpu_of(rq), migration_cpu_stop, &arg); in __set_cpus_allowed_ptr() 1313 struct migration_swap_arg *arg = data; in migrate_swap_stop() local 1317 if (!cpu_active(arg->src_cpu) || !cpu_active(arg->dst_cpu)) in migrate_swap_stop() [all …]
|
D | wait.c | 354 int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *arg) in wake_bit_function() argument 356 struct wait_bit_key *key = arg; in wake_bit_function() 498 void *arg) in wake_atomic_t_function() argument 500 struct wait_bit_key *key = arg; in wake_atomic_t_function()
|
/kernel/time/ |
D | posix-clock.c | 118 unsigned int cmd, unsigned long arg) in posix_clock_ioctl() argument 127 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_ioctl() 136 unsigned int cmd, unsigned long arg) in posix_clock_compat_ioctl() argument 145 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_compat_ioctl()
|
/kernel/locking/ |
D | locktorture.c | 571 static int lock_torture_writer(void *arg) in lock_torture_writer() argument 573 struct lock_stress_stats *lwsp = arg; in lock_torture_writer() 608 static int lock_torture_reader(void *arg) in lock_torture_reader() argument 610 struct lock_stress_stats *lrsp = arg; in lock_torture_reader() 714 static int lock_torture_stats(void *arg) in lock_torture_stats() argument
|
/kernel/debug/kdb/ |
D | kdb_main.c | 335 int kdbgetularg(const char *arg, unsigned long *value) in kdbgetularg() argument 340 val = simple_strtoul(arg, &endp, 0); in kdbgetularg() 342 if (endp == arg) { in kdbgetularg() 347 val = simple_strtoul(arg, &endp, 16); in kdbgetularg() 348 if (endp == arg) in kdbgetularg() 357 int kdbgetu64arg(const char *arg, u64 *value) in kdbgetu64arg() argument 362 val = simple_strtoull(arg, &endp, 0); in kdbgetu64arg() 364 if (endp == arg) { in kdbgetu64arg() 366 val = simple_strtoull(arg, &endp, 16); in kdbgetu64arg() 367 if (endp == arg) in kdbgetu64arg()
|