/kernel/trace/ |
D | trace_probe.c | 281 static int parse_probe_vars(char *arg, const struct fetch_type *t, in parse_probe_vars() argument 291 code->data = kstrdup(arg, GFP_KERNEL); in parse_probe_vars() 295 } else if (strcmp(arg, "retval") == 0) { in parse_probe_vars() 302 } else if ((len = str_has_prefix(arg, "stack"))) { in parse_probe_vars() 303 if (arg[len] == '\0') { in parse_probe_vars() 305 } else if (isdigit(arg[len])) { in parse_probe_vars() 306 ret = kstrtoul(arg + len, 10, ¶m); in parse_probe_vars() 319 } else if (strcmp(arg, "comm") == 0 || strcmp(arg, "COMM") == 0) { in parse_probe_vars() 324 (len = str_has_prefix(arg, "arg"))) { in parse_probe_vars() 325 ret = kstrtoul(arg + len, 10, ¶m); in parse_probe_vars() [all …]
|
D | trace_probe_tmpl.h | 217 struct probe_arg *arg; in __get_data_size() local 221 arg = tp->args + i; in __get_data_size() 222 if (unlikely(arg->dynamic)) { in __get_data_size() 223 len = process_fetch_insn(arg->code, regs, NULL, NULL); in __get_data_size() 237 struct probe_arg *arg; in store_trace_args() local 244 arg = tp->args + i; in store_trace_args() 245 dl = data + arg->offset; in store_trace_args() 247 if (unlikely(arg->dynamic)) in store_trace_args() 249 ret = process_fetch_insn(arg->code, rec, dl, base); in store_trace_args() 250 if (arg->dynamic && likely(ret > 0)) { in store_trace_args()
|
D | trace_dynevent.c | 292 struct dynevent_arg *arg, in dynevent_arg_add() argument 298 ret = check_arg(arg); in dynevent_arg_add() 303 ret = seq_buf_printf(&cmd->seq, " %s%c", arg->str, arg->separator); in dynevent_arg_add() 305 pr_err("String is too long: %s%c\n", arg->str, arg->separator); in dynevent_arg_add() 427 void dynevent_arg_init(struct dynevent_arg *arg, in dynevent_arg_init() argument 430 memset(arg, '\0', sizeof(*arg)); in dynevent_arg_init() 434 arg->separator = separator; in dynevent_arg_init()
|
D | trace_dynevent.h | 133 extern void dynevent_arg_init(struct dynevent_arg *arg, 136 struct dynevent_arg *arg,
|
D | trace_events_synth.c | 1089 struct dynevent_arg arg; in synth_event_add_field_str() local 1098 dynevent_arg_init(&arg, ';'); in synth_event_add_field_str() 1100 arg.str = type_name; in synth_event_add_field_str() 1102 ret = dynevent_arg_add(cmd, &arg, NULL); in synth_event_add_field_str() 1183 struct dynevent_arg arg; in __synth_event_gen_cmd_start() local 1193 dynevent_arg_init(&arg, 0); in __synth_event_gen_cmd_start() 1194 arg.str = name; in __synth_event_gen_cmd_start() 1195 ret = dynevent_arg_add(cmd, &arg, NULL); in __synth_event_gen_cmd_start() 1254 struct dynevent_arg arg; in synth_event_gen_cmd_array_start() local 1267 dynevent_arg_init(&arg, 0); in synth_event_gen_cmd_array_start() [all …]
|
D | blktrace.c | 622 struct block_device *bdev, char __user *arg) in __blk_trace_setup() argument 627 ret = copy_from_user(&buts, arg, sizeof(buts)); in __blk_trace_setup() 635 if (copy_to_user(arg, &buts, sizeof(buts))) { in __blk_trace_setup() 644 char __user *arg) in blk_trace_setup() argument 649 ret = __blk_trace_setup(q, name, dev, bdev, arg); in blk_trace_setup() 659 char __user *arg) in compat_blk_trace_setup() argument 665 if (copy_from_user(&cbuts, arg, sizeof(cbuts))) in compat_blk_trace_setup() 681 if (copy_to_user(arg, &buts.name, ARRAY_SIZE(buts.name))) { in compat_blk_trace_setup() 730 int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) in blk_trace_ioctl() argument 745 ret = __blk_trace_setup(q, b, bdev->bd_dev, bdev, arg); in blk_trace_ioctl() [all …]
|
D | trace_uprobe.c | 544 char *arg, *filename, *rctr, *rctr_end, *tmp; in __trace_uprobe_create() local 579 arg = strrchr(filename, ':'); in __trace_uprobe_create() 580 if (!arg || !isdigit(arg[1])) { in __trace_uprobe_create() 588 *arg++ = '\0'; in __trace_uprobe_create() 603 rctr = strchr(arg, '('); in __trace_uprobe_create() 629 tmp = strchr(arg, '%'); in __trace_uprobe_create() 642 ret = kstrtoul(arg, 0, &offset); in __trace_uprobe_create() 644 trace_probe_log_err(arg - filename, BAD_UPROBE_OFFS); in __trace_uprobe_create()
|
/kernel/ |
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)); \ 259 *((unsigned int *)kp->arg) = num; in param_set_uint_minmax() 271 maybe_kfree_parameter(*(char **)kp->arg); in param_set_charp() [all …]
|
D | stop_machine.c | 139 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument 142 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done, .caller = _RET_IP_ }; in stop_one_cpu() 335 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg) in stop_two_cpus() argument 343 .data = arg, in stop_two_cpus() 350 .arg = &msdata, in stop_two_cpus() 385 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument 388 *work_buf = (struct cpu_stop_work){ .fn = fn, .arg = arg, .caller = _RET_IP_, }; in stop_one_cpu_nowait() 394 cpu_stop_fn_t fn, void *arg, in queue_stop_cpus_work() argument 412 work->arg = arg; in queue_stop_cpus_work() 426 cpu_stop_fn_t fn, void *arg) in __stop_cpus() argument [all …]
|
D | crash_dump.c | 29 static int __init setup_elfcorehdr(char *arg) in setup_elfcorehdr() argument 32 if (!arg) in setup_elfcorehdr() 34 elfcorehdr_addr = memparse(arg, &end); in setup_elfcorehdr() 39 return end > arg ? 0 : -EINVAL; in setup_elfcorehdr()
|
D | kcov.c | 528 static int kcov_get_mode(unsigned long arg) in kcov_get_mode() argument 530 if (arg == KCOV_TRACE_PC) in kcov_get_mode() 532 else if (arg == KCOV_TRACE_CMP) in kcov_get_mode() 575 unsigned long arg) in kcov_ioctl_locked() argument 597 mode = kcov_get_mode(arg); in kcov_ioctl_locked() 610 unused = arg; in kcov_ioctl_locked() 625 remote_arg = (struct kcov_remote_arg *)arg; in kcov_ioctl_locked() 680 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() argument 700 size = arg; in kcov_ioctl() 718 if (get_user(remote_num_handles, (unsigned __user *)(arg + in kcov_ioctl() [all …]
|
D | torture.c | 335 torture_onoff(void *arg) in torture_onoff() argument 551 static int torture_shuffle(void *arg) in torture_shuffle() argument 622 static int torture_shutdown(void *arg) in torture_shutdown() argument 756 static int torture_stutter(void *arg) in torture_stutter() argument 928 int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m, in _torture_create_kthread() argument 934 *tp = kthread_create(fn, arg, "%s", s); in _torture_create_kthread()
|
D | resource.c | 376 void *arg, in __walk_iomem_res_desc() argument 384 ret = (*func)(&res, arg); in __walk_iomem_res_desc() 412 u64 end, void *arg, int (*func)(struct resource *, void *)) in walk_iomem_res_desc() argument 414 return __walk_iomem_res_desc(start, end, flags, desc, arg, func); in walk_iomem_res_desc() 425 int walk_system_ram_res(u64 start, u64 end, void *arg, in walk_system_ram_res() argument 430 return __walk_iomem_res_desc(start, end, flags, IORES_DESC_NONE, arg, in walk_system_ram_res() 438 int walk_mem_res(u64 start, u64 end, void *arg, in walk_mem_res() argument 443 return __walk_iomem_res_desc(start, end, flags, IORES_DESC_NONE, arg, in walk_mem_res() 453 void *arg, int (*func)(unsigned long, unsigned long, void *)) in walk_system_ram_range() argument 469 ret = (*func)(pfn, end_pfn - pfn, arg); in walk_system_ram_range() [all …]
|
D | ptrace.c | 732 struct ptrace_peeksiginfo_args arg; in ptrace_peek_siginfo() local 737 ret = copy_from_user(&arg, (void __user *) addr, in ptrace_peek_siginfo() 742 if (arg.flags & ~PTRACE_PEEKSIGINFO_SHARED) in ptrace_peek_siginfo() 745 if (arg.nr < 0) in ptrace_peek_siginfo() 749 if (arg.off > ULONG_MAX) in ptrace_peek_siginfo() 752 if (arg.flags & PTRACE_PEEKSIGINFO_SHARED) in ptrace_peek_siginfo() 757 for (i = 0; i < arg.nr; ) { in ptrace_peek_siginfo() 759 unsigned long off = arg.off + i; in ptrace_peek_siginfo()
|
D | freezer.c | 112 static int __set_task_frozen(struct task_struct *p, void *arg) in __set_task_frozen() argument 188 static int __restore_freezer_state(struct task_struct *p, void *arg) in __restore_freezer_state() argument
|
/kernel/kcsan/ |
D | debugfs.c | 227 char *arg; in debugfs_write() local 233 arg = strstrip(kbuf); in debugfs_write() 235 if (!strcmp(arg, "on")) { in debugfs_write() 237 } else if (!strcmp(arg, "off")) { in debugfs_write() 239 } else if (str_has_prefix(arg, "microbench=")) { in debugfs_write() 242 if (kstrtoul(&arg[strlen("microbench=")], 0, &iters)) in debugfs_write() 245 } else if (!strcmp(arg, "whitelist")) { in debugfs_write() 247 } else if (!strcmp(arg, "blacklist")) { in debugfs_write() 249 } else if (arg[0] == '!') { in debugfs_write() 250 ssize_t ret = insert_report_filterlist(&arg[1]); in debugfs_write()
|
/kernel/power/ |
D | user.c | 250 unsigned long arg) in snapshot_ioctl() argument 313 error = put_user(in_suspend, (int __user *)arg); in snapshot_ioctl() 345 image_size = arg; in snapshot_ioctl() 355 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl() 361 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl() 372 error = put_user(offset, (loff_t __user *)arg); in snapshot_ioctl() 400 data->platform_support = !!arg; in snapshot_ioctl() 409 error = snapshot_set_swap_area(data, (void __user *)arg); in snapshot_ioctl() 425 snapshot_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in snapshot_compat_ioctl() argument 436 (unsigned long) compat_ptr(arg)); in snapshot_compat_ioctl() [all …]
|
/kernel/irq/ |
D | msi.c | 531 unsigned int nr_irqs, void *arg) in msi_domain_alloc() argument 535 irq_hw_number_t hwirq = ops->get_hwirq(info, arg); in msi_domain_alloc() 542 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in msi_domain_alloc() 548 ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); in msi_domain_alloc() 583 msi_alloc_info_t *arg) in msi_domain_ops_get_hwirq() argument 585 return arg->hwirq; in msi_domain_ops_get_hwirq() 589 int nvec, msi_alloc_info_t *arg) in msi_domain_ops_prepare() argument 591 memset(arg, 0, sizeof(*arg)); in msi_domain_ops_prepare() 595 static void msi_domain_ops_set_desc(msi_alloc_info_t *arg, in msi_domain_ops_set_desc() argument 598 arg->desc = desc; in msi_domain_ops_set_desc() [all …]
|
D | irqdomain.c | 29 unsigned int nr_irqs, int node, void *arg, 1479 unsigned int nr_irqs, void *arg) in irq_domain_alloc_irqs_hierarchy() argument 1486 return domain->ops->alloc(domain, irq_base, nr_irqs, arg); in irq_domain_alloc_irqs_hierarchy() 1490 unsigned int nr_irqs, int node, void *arg, in irq_domain_alloc_irqs_locked() argument 1513 ret = irq_domain_alloc_irqs_hierarchy(domain, virq, nr_irqs, arg); in irq_domain_alloc_irqs_locked() 1558 unsigned int nr_irqs, int node, void *arg, in __irq_domain_alloc_irqs() argument 1570 ret = irq_domain_alloc_irqs_locked(domain, irq_base, nr_irqs, node, arg, in __irq_domain_alloc_irqs() 1610 int irq_domain_push_irq(struct irq_domain *domain, int virq, void *arg) in irq_domain_push_irq() argument 1666 rv = irq_domain_alloc_irqs_hierarchy(domain, virq, 1, arg); in irq_domain_push_irq() 1786 void *arg) in irq_domain_alloc_irqs_parent() argument [all …]
|
/kernel/rcu/ |
D | rcuscale.c | 373 rcu_scale_reader(void *arg) in rcu_scale_reader() argument 377 long me = (long)arg; in rcu_scale_reader() 408 rcu_scale_writer(void *arg) in rcu_scale_writer() argument 412 long me = (long)arg; in rcu_scale_writer() 565 kfree_scale_thread(void *arg) in kfree_scale_thread() argument 568 long me = (long)arg; in kfree_scale_thread() 660 kfree_scale_shutdown(void *arg) in kfree_scale_shutdown() argument 810 rcu_scale_shutdown(void *arg) in rcu_scale_shutdown() argument
|
D | tree_nocb.h | 77 static int __init parse_rcu_nocb_poll(char *arg) in parse_rcu_nocb_poll() argument 894 static int rcu_nocb_gp_kthread(void *arg) in rcu_nocb_gp_kthread() argument 896 struct rcu_data *rdp = arg; in rcu_nocb_gp_kthread() 1002 static int rcu_nocb_cb_kthread(void *arg) in rcu_nocb_cb_kthread() argument 1004 struct rcu_data *rdp = arg; in rcu_nocb_cb_kthread() 1111 static long rcu_nocb_rdp_deoffload(void *arg) in rcu_nocb_rdp_deoffload() argument 1113 struct rcu_data *rdp = arg; in rcu_nocb_rdp_deoffload() 1230 static long rcu_nocb_rdp_offload(void *arg) in rcu_nocb_rdp_offload() argument 1232 struct rcu_data *rdp = arg; in rcu_nocb_rdp_offload()
|
/kernel/bpf/ |
D | inode.c | 348 static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkprog() argument 350 return bpf_mkobj_ops(dentry, mode, arg, &bpf_prog_iops, in bpf_mkprog() 354 static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkmap() argument 356 struct bpf_map *map = arg; in bpf_mkmap() 358 return bpf_mkobj_ops(dentry, mode, arg, &bpf_map_iops, in bpf_mkmap() 363 static int bpf_mklink(struct dentry *dentry, umode_t mode, void *arg) in bpf_mklink() argument 365 struct bpf_link *link = arg; in bpf_mklink() 367 return bpf_mkobj_ops(dentry, mode, arg, &bpf_link_iops, in bpf_mklink()
|
/kernel/sched/ |
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()
|
D | core.c | 814 static void __hrtick_start(void *arg) in __hrtick_start() argument 816 struct rq *rq = arg; in __hrtick_start() 2574 struct migration_arg arg; member 2607 struct migration_arg *arg = data; in migration_cpu_stop() local 2608 struct set_affinity_pending *pending = arg->pending; in migration_cpu_stop() 2609 struct task_struct *p = arg->task; in migration_cpu_stop() 2653 rq = __migrate_task(rq, &rf, p, arg->dest_cpu); in migration_cpu_stop() 2655 p->wake_cpu = arg->dest_cpu; in migration_cpu_stop() 2694 &pending->arg, &pending->stop_work); in migration_cpu_stop() 2709 int push_cpu_stop(void *arg) in push_cpu_stop() argument [all …]
|
/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()
|