/kernel/trace/ |
D | trace_probe.c | 272 static int parse_probe_vars(char *arg, const struct fetch_type *t, in parse_probe_vars() argument 279 if (strcmp(arg, "retval") == 0) { in parse_probe_vars() 286 } else if ((len = str_has_prefix(arg, "stack"))) { in parse_probe_vars() 287 if (arg[len] == '\0') { in parse_probe_vars() 289 } else if (isdigit(arg[len])) { in parse_probe_vars() 290 ret = kstrtoul(arg + len, 10, ¶m); in parse_probe_vars() 303 } else if (strcmp(arg, "comm") == 0) { in parse_probe_vars() 308 (len = str_has_prefix(arg, "arg"))) { in parse_probe_vars() 309 ret = kstrtoul(arg + len, 10, ¶m); in parse_probe_vars() 354 parse_probe_arg(char *arg, const struct fetch_type *type, in parse_probe_arg() argument [all …]
|
D | trace_probe_tmpl.h | 174 struct probe_arg *arg; in __get_data_size() local 178 arg = tp->args + i; in __get_data_size() 179 if (unlikely(arg->dynamic)) { in __get_data_size() 180 len = process_fetch_insn(arg->code, regs, NULL, NULL); in __get_data_size() 194 struct probe_arg *arg; in store_trace_args() local 201 arg = tp->args + i; in store_trace_args() 202 dl = data + arg->offset; in store_trace_args() 204 if (unlikely(arg->dynamic)) in store_trace_args() 206 ret = process_fetch_insn(arg->code, regs, dl, base); in store_trace_args() 207 if (unlikely(ret < 0 && arg->dynamic)) { in store_trace_args()
|
D | blktrace.c | 562 struct block_device *bdev, char __user *arg) in __blk_trace_setup() argument 567 ret = copy_from_user(&buts, arg, sizeof(buts)); in __blk_trace_setup() 575 if (copy_to_user(arg, &buts, sizeof(buts))) { in __blk_trace_setup() 584 char __user *arg) in blk_trace_setup() argument 589 ret = __blk_trace_setup(q, name, dev, bdev, arg); in blk_trace_setup() 599 char __user *arg) in compat_blk_trace_setup() argument 605 if (copy_from_user(&cbuts, arg, sizeof(cbuts))) in compat_blk_trace_setup() 621 if (copy_to_user(arg, &buts.name, ARRAY_SIZE(buts.name))) { in compat_blk_trace_setup() 695 int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) in blk_trace_ioctl() argument 710 ret = __blk_trace_setup(q, b, bdev->bd_dev, bdev, arg); in blk_trace_ioctl() [all …]
|
D | trace_uprobe.c | 552 char *arg, *filename, *rctr, *rctr_end, *tmp; in trace_uprobe_create() local 586 arg = strrchr(filename, ':'); in trace_uprobe_create() 587 if (!arg || !isdigit(arg[1])) { in trace_uprobe_create() 595 *arg++ = '\0'; in trace_uprobe_create() 610 rctr = strchr(arg, '('); in trace_uprobe_create() 636 ret = kstrtoul(arg, 0, &offset); in trace_uprobe_create() 638 trace_probe_log_err(arg - filename, BAD_UPROBE_OFFS); in trace_uprobe_create()
|
D | trace_probe.h | 363 char *arg, unsigned int flags); 365 extern int traceprobe_update_arg(struct probe_arg *arg); 366 extern void traceprobe_free_probe_arg(struct probe_arg *arg);
|
D | ring_buffer_benchmark.c | 381 static int ring_buffer_consumer_thread(void *arg) in ring_buffer_consumer_thread() argument 401 static int ring_buffer_producer_thread(void *arg) in ring_buffer_producer_thread() argument
|
/kernel/irq/ |
D | msi.c | 139 unsigned int nr_irqs, void *arg) in msi_domain_alloc() argument 143 irq_hw_number_t hwirq = ops->get_hwirq(info, arg); in msi_domain_alloc() 150 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in msi_domain_alloc() 156 ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); in msi_domain_alloc() 192 msi_alloc_info_t *arg) in msi_domain_ops_get_hwirq() argument 194 return arg->hwirq; in msi_domain_ops_get_hwirq() 198 int nvec, msi_alloc_info_t *arg) in msi_domain_ops_prepare() argument 200 memset(arg, 0, sizeof(*arg)); in msi_domain_ops_prepare() 204 static void msi_domain_ops_set_desc(msi_alloc_info_t *arg, in msi_domain_ops_set_desc() argument 207 arg->desc = desc; in msi_domain_ops_set_desc() [all …]
|
D | irqdomain.c | 1294 unsigned int nr_irqs, void *arg) in irq_domain_alloc_irqs_hierarchy() argument 1296 return domain->ops->alloc(domain, irq_base, nr_irqs, arg); in irq_domain_alloc_irqs_hierarchy() 1322 unsigned int nr_irqs, int node, void *arg, in __irq_domain_alloc_irqs() argument 1357 ret = irq_domain_alloc_irqs_hierarchy(domain, virq, nr_irqs, arg); in __irq_domain_alloc_irqs() 1402 int irq_domain_push_irq(struct irq_domain *domain, int virq, void *arg) in irq_domain_push_irq() argument 1458 rv = irq_domain_alloc_irqs_hierarchy(domain, virq, 1, arg); in irq_domain_push_irq() 1579 void *arg) in irq_domain_alloc_irqs_parent() argument 1585 nr_irqs, arg); in irq_domain_alloc_irqs_parent()
|
/kernel/ |
D | stop_machine.c | 123 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument 126 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done }; in stop_one_cpu() 317 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg) in stop_two_cpus() argument 325 .data = arg, in stop_two_cpus() 332 .arg = &msdata, in stop_two_cpus() 366 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument 369 *work_buf = (struct cpu_stop_work){ .fn = fn, .arg = arg, }; in stop_one_cpu_nowait() 374 cpu_stop_fn_t fn, void *arg, in queue_stop_cpus_work() argument 392 work->arg = arg; in queue_stop_cpus_work() 405 cpu_stop_fn_t fn, void *arg) in __stop_cpus() argument [all …]
|
D | params.c | 122 void *arg, in parse_one() argument 124 const char *doing, void *arg)) in parse_one() 153 return handle_unknown(param, val, doing, arg); in parse_one() 167 void *arg, in parse_args() argument 169 const char *doing, void *arg)) in parse_args() 189 min_level, max_level, arg, unknown); in parse_args() 220 return strtolfn(val, 0, (type *)kp->arg); \ 225 *((type *)kp->arg)); \ 252 maybe_kfree_parameter(*(char **)kp->arg); in param_set_charp() 257 *(char **)kp->arg = kmalloc_parameter(strlen(val)+1); in param_set_charp() [all …]
|
D | crash_dump.c | 35 static int __init setup_elfcorehdr(char *arg) in setup_elfcorehdr() argument 38 if (!arg) in setup_elfcorehdr() 40 elfcorehdr_addr = memparse(arg, &end); in setup_elfcorehdr() 45 return end > arg ? 0 : -EINVAL; in setup_elfcorehdr()
|
D | kcov.c | 499 static int kcov_get_mode(unsigned long arg) in kcov_get_mode() argument 501 if (arg == KCOV_TRACE_PC) in kcov_get_mode() 503 else if (arg == KCOV_TRACE_CMP) in kcov_get_mode() 546 unsigned long arg) in kcov_ioctl_locked() argument 568 size = arg; in kcov_ioctl_locked() 588 mode = kcov_get_mode(arg); in kcov_ioctl_locked() 603 unused = arg; in kcov_ioctl_locked() 619 remote_arg = (struct kcov_remote_arg *)arg; in kcov_ioctl_locked() 673 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() argument 682 if (get_user(remote_num_handles, (unsigned __user *)(arg + in kcov_ioctl() [all …]
|
D | torture.c | 184 torture_onoff(void *arg) in torture_onoff() argument 407 static int torture_shuffle(void *arg) in torture_shuffle() argument 478 static int torture_shutdown(void *arg) in torture_shutdown() argument 604 static int torture_stutter(void *arg) in torture_stutter() argument 775 int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m, in _torture_create_kthread() argument 781 *tp = kthread_run(fn, arg, "%s", s); in _torture_create_kthread()
|
D | resource.c | 397 bool first_lvl, void *arg, in __walk_iomem_res_desc() argument 405 ret = (*func)(&res, arg); in __walk_iomem_res_desc() 432 u64 end, void *arg, int (*func)(struct resource *, void *)) in walk_iomem_res_desc() argument 434 return __walk_iomem_res_desc(start, end, flags, desc, false, arg, func); in walk_iomem_res_desc() 445 int walk_system_ram_res(u64 start, u64 end, void *arg, in walk_system_ram_res() argument 451 arg, func); in walk_system_ram_res() 458 int walk_mem_res(u64 start, u64 end, void *arg, in walk_mem_res() argument 464 arg, func); in walk_mem_res() 476 void *arg, int (*func)(unsigned long, unsigned long, void *)) in walk_system_ram_range() argument 493 ret = (*func)(pfn, end_pfn - pfn, arg); in walk_system_ram_range() [all …]
|
D | ptrace.c | 710 struct ptrace_peeksiginfo_args arg; in ptrace_peek_siginfo() local 715 ret = copy_from_user(&arg, (void __user *) addr, in ptrace_peek_siginfo() 720 if (arg.flags & ~PTRACE_PEEKSIGINFO_SHARED) in ptrace_peek_siginfo() 723 if (arg.nr < 0) in ptrace_peek_siginfo() 727 if (arg.off > ULONG_MAX) in ptrace_peek_siginfo() 730 if (arg.flags & PTRACE_PEEKSIGINFO_SHARED) in ptrace_peek_siginfo() 735 for (i = 0; i < arg.nr; ) { in ptrace_peek_siginfo() 737 unsigned long off = arg.off + i; in ptrace_peek_siginfo()
|
D | reboot.c | 313 void __user *, arg) in SYSCALL_DEFINE4() argument 371 ret = strncpy_from_user(&buffer[0], arg, sizeof(buffer) - 1); in SYSCALL_DEFINE4()
|
/kernel/power/ |
D | user.c | 202 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/sched/ |
D | core.c | 265 static void __hrtick_start(void *arg) in __hrtick_start() argument 267 struct rq *rq = arg; in __hrtick_start() 1544 struct migration_arg *arg = data; in migration_cpu_stop() local 1545 struct task_struct *p = arg->task; in migration_cpu_stop() 1570 rq = __migrate_task(rq, &rf, p, arg->dest_cpu); in migration_cpu_stop() 1572 p->wake_cpu = arg->dest_cpu; in migration_cpu_stop() 1683 struct migration_arg arg = { p, dest_cpu }; in __set_cpus_allowed_ptr() local 1686 stop_one_cpu(cpu_of(rq), migration_cpu_stop, &arg); in __set_cpus_allowed_ptr() 1797 struct migration_swap_arg *arg = data; in migrate_swap_stop() local 1801 if (!cpu_active(arg->src_cpu) || !cpu_active(arg->dst_cpu)) in migrate_swap_stop() [all …]
|
D | wait_bit.c | 21 int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *arg) in wake_bit_function() argument 23 struct wait_bit_key *key = arg; in wake_bit_function() 161 int sync, void *arg) in var_wake_function() argument 163 struct wait_bit_key *key = arg; in var_wake_function()
|
/kernel/time/ |
D | posix-clock.c | 73 unsigned int cmd, unsigned long arg) in posix_clock_ioctl() argument 82 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_ioctl() 91 unsigned int cmd, unsigned long arg) in posix_clock_compat_ioctl() argument 100 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_compat_ioctl()
|
/kernel/rcu/ |
D | rcuperf.c | 322 rcu_perf_reader(void *arg) in rcu_perf_reader() argument 326 long me = (long)arg; in rcu_perf_reader() 357 rcu_perf_writer(void *arg) in rcu_perf_writer() argument 361 long me = (long)arg; in rcu_perf_writer() 590 rcu_perf_shutdown(void *arg) in rcu_perf_shutdown() argument
|
D | rcutorture.c | 797 static int rcu_torture_boost(void *arg) in rcu_torture_boost() argument 907 rcu_torture_fqs(void *arg) in rcu_torture_fqs() argument 938 rcu_torture_writer(void *arg) in rcu_torture_writer() argument 1098 rcu_torture_fakewriter(void *arg) in rcu_torture_fakewriter() argument 1354 rcu_torture_reader(void *arg) in rcu_torture_reader() argument 1357 long myid = (long)arg; in rcu_torture_reader() 1505 rcu_torture_stats(void *arg) in rcu_torture_stats() argument 2009 static int rcu_torture_barrier_cbs(void *arg) in rcu_torture_barrier_cbs() argument 2011 long myid = (long)arg; in rcu_torture_barrier_cbs() 2045 static int rcu_torture_barrier(void *arg) in rcu_torture_barrier() argument
|
/kernel/bpf/ |
D | inode.c | 324 static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkprog() argument 326 return bpf_mkobj_ops(dentry, mode, arg, &bpf_prog_iops, in bpf_mkprog() 330 static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkmap() argument 332 struct bpf_map *map = arg; in bpf_mkmap() 334 return bpf_mkobj_ops(dentry, mode, arg, &bpf_map_iops, in bpf_mkmap()
|
/kernel/locking/ |
D | locktorture.c | 619 static int lock_torture_writer(void *arg) in lock_torture_writer() argument 621 struct lock_stress_stats *lwsp = arg; in lock_torture_writer() 656 static int lock_torture_reader(void *arg) in lock_torture_reader() argument 658 struct lock_stress_stats *lrsp = arg; in lock_torture_reader() 762 static int lock_torture_stats(void *arg) in lock_torture_stats() argument
|
/kernel/debug/kdb/ |
D | kdb_main.c | 337 int kdbgetularg(const char *arg, unsigned long *value) in kdbgetularg() argument 342 val = simple_strtoul(arg, &endp, 0); in kdbgetularg() 344 if (endp == arg) { in kdbgetularg() 349 val = simple_strtoul(arg, &endp, 16); in kdbgetularg() 350 if (endp == arg) in kdbgetularg() 359 int kdbgetu64arg(const char *arg, u64 *value) in kdbgetu64arg() argument 364 val = simple_strtoull(arg, &endp, 0); in kdbgetu64arg() 366 if (endp == arg) { in kdbgetu64arg() 368 val = simple_strtoull(arg, &endp, 16); in kdbgetu64arg() 369 if (endp == arg) in kdbgetu64arg()
|