| /kernel/trace/ |
| A D | trace_probe.c | 1008 if (strcmp(arg, "comm") == 0 || strcmp(arg, "COMM") == 0) { in NOKPROBE_SYMBOL() 1170 arg[1] = arg[0]; in parse_probe_arg() 1171 arg++; in parse_probe_arg() 1186 ctx->offset += (tmp + 1 - arg) + (arg[0] != '-' ? 1 : 0); in parse_probe_arg() 1235 if (isalpha(arg[0]) || arg[0] == '_') { /* BTF variable */ in parse_probe_arg() 1490 if (!arg) in traceprobe_parse_probe_arg_body() 1592 end = arg + strlen(arg); in generate_probe_arg_name() 1594 name = kmemdup_nul(arg, end - arg, GFP_KERNEL); in generate_probe_arg_name() 1623 parg->name = kmemdup_nul(arg, body - arg, GFP_KERNEL); in traceprobe_parse_probe_arg() 1627 body = arg; in traceprobe_parse_probe_arg() [all …]
|
| A D | trace_probe_tmpl.h | 237 struct probe_arg *arg; in __get_data_size() local 241 arg = tp->args + i; in __get_data_size() 242 if (unlikely(arg->dynamic)) { in __get_data_size() 243 len = process_fetch_insn(arg->code, regs, edata, NULL, NULL); in __get_data_size() 257 struct probe_arg *arg; in store_trace_args() local 264 arg = tp->args + i; in store_trace_args() 265 dl = data + arg->offset; in store_trace_args() 267 if (unlikely(arg->dynamic)) in store_trace_args() 269 ret = process_fetch_insn(arg->code, rec, edata, dl, base); in store_trace_args() 270 if (arg->dynamic && likely(ret > 0)) { in store_trace_args()
|
| A D | trace_dynevent.c | 297 struct dynevent_arg *arg, in dynevent_arg_add() argument 303 ret = check_arg(arg); in dynevent_arg_add() 308 ret = seq_buf_printf(&cmd->seq, " %s%c", arg->str, arg->separator); in dynevent_arg_add() 310 pr_err("String is too long: %s%c\n", arg->str, arg->separator); in dynevent_arg_add() 432 void dynevent_arg_init(struct dynevent_arg *arg, in dynevent_arg_init() argument 435 memset(arg, '\0', sizeof(*arg)); in dynevent_arg_init() 439 arg->separator = separator; in dynevent_arg_init()
|
| A D | trace_dynevent.h | 134 extern void dynevent_arg_init(struct dynevent_arg *arg, 137 struct dynevent_arg *arg,
|
| A D | trace_events.c | 297 r = strstr(arg, str); in find_print_string() 432 int arg = 0; in test_event_printk() local 460 arg = 0; in test_event_printk() 497 if (WARN_ONCE(arg == 63, in test_event_printk() 518 arg++; in test_event_printk() 526 arg++; in test_event_printk() 527 if (WARN_ONCE(arg == 63, in test_event_printk() 540 arg++; in test_event_printk() 586 arg++; in test_event_printk() 607 arg = 1; in test_event_printk() [all …]
|
| /kernel/ |
| A D | stop_machine.c | 140 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done, .caller = _RET_IP_ }; in stop_one_cpu() 343 .data = arg, in stop_two_cpus() 350 .arg = &msdata, in stop_two_cpus() 388 *work_buf = (struct cpu_stop_work){ .fn = fn, .arg = arg, .caller = _RET_IP_, }; in stop_one_cpu_nowait() 393 cpu_stop_fn_t fn, void *arg, in queue_stop_cpus_work() argument 411 work->arg = arg; in queue_stop_cpus_work() 425 cpu_stop_fn_t fn, void *arg) in __stop_cpus() argument 430 if (!queue_stop_cpus_work(cpumask, fn, arg, &done)) in __stop_cpus() 470 ret = __stop_cpus(cpumask, fn, arg); in stop_cpus() 504 void *arg = work->arg; in cpu_stopper_thread() local [all …]
|
| A D | params.c | 223 *((type *)kp->arg)); \ 280 if (!*(char **)kp->arg) in param_set_charp() 284 *(const char **)kp->arg = val; in param_set_charp() 296 void param_free_charp(void *arg) in param_free_charp() argument 341 dummy_kp.arg = &new_value; in param_set_bool_enable_only() 372 dummy.arg = &boolval; in param_set_invbool() 375 *(bool *)kp->arg = !boolval; in param_set_invbool() 399 boolkp.arg = &v; in param_set_bint() 403 *(int *)kp->arg = v; in param_set_bint() 431 kp.arg = elem; in param_array() [all …]
|
| A D | elfcorehdr.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()
|
| A D | kcov.c | 329 u64 *cases = arg; in __sanitizer_cov_trace_switch() 539 static int kcov_get_mode(unsigned long arg) in kcov_get_mode() argument 541 if (arg == KCOV_TRACE_PC) in kcov_get_mode() 543 else if (arg == KCOV_TRACE_CMP) in kcov_get_mode() 586 unsigned long arg) in kcov_ioctl_locked() argument 608 mode = kcov_get_mode(arg); in kcov_ioctl_locked() 621 unused = arg; in kcov_ioctl_locked() 636 remote_arg = (struct kcov_remote_arg *)arg; in kcov_ioctl_locked() 713 size = arg; in kcov_ioctl() 745 arg = (unsigned long)remote_arg; in kcov_ioctl() [all …]
|
| A D | torture.c | 341 torture_onoff(void *arg) in torture_onoff() argument 559 static int torture_shuffle(void *arg) in torture_shuffle() argument 632 static int torture_shutdown(void *arg) in torture_shutdown() argument 752 static int torture_stutter(void *arg) in torture_stutter() argument 937 int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m, in _torture_create_kthread() argument 943 *tp = kthread_create(fn, arg, "%s", s); in _torture_create_kthread()
|
| A D | crash_core.c | 559 static void crash_handle_hotplug_event(unsigned int hp_action, unsigned int cpu, void *arg) in crash_handle_hotplug_event() argument 622 arch_crash_handle_hotplug_event(image, arg); in crash_handle_hotplug_event() 638 static int crash_memhp_notifier(struct notifier_block *nb, unsigned long val, void *arg) in crash_memhp_notifier() argument 643 KEXEC_CRASH_HP_INVALID_CPU, arg); in crash_memhp_notifier() 648 KEXEC_CRASH_HP_INVALID_CPU, arg); in crash_memhp_notifier()
|
| A D | resource.c | 387 void *arg, in __walk_iomem_res_desc() argument 395 ret = (*func)(&res, arg); in __walk_iomem_res_desc() 423 u64 end, void *arg, int (*func)(struct resource *, void *)) in walk_iomem_res_desc() argument 425 return __walk_iomem_res_desc(start, end, flags, desc, arg, func); in walk_iomem_res_desc() 436 int walk_system_ram_res(u64 start, u64 end, void *arg, in walk_system_ram_res() argument 441 return __walk_iomem_res_desc(start, end, flags, IORES_DESC_NONE, arg, in walk_system_ram_res() 451 int walk_system_ram_res_rev(u64 start, u64 end, void *arg, in walk_system_ram_res_rev() argument 487 ret = (*func)(&rams[i], arg); in walk_system_ram_res_rev() 501 int walk_mem_res(u64 start, u64 end, void *arg, in walk_mem_res() argument 516 void *arg, int (*func)(unsigned long, unsigned long, void *)) in walk_system_ram_range() argument [all …]
|
| A D | crash_dump_dm_crypt.c | 35 static int __init setup_dmcryptkeys(char *arg) in setup_dmcryptkeys() argument 39 if (!arg) in setup_dmcryptkeys() 41 dm_crypt_keys_addr = memparse(arg, &end); in setup_dmcryptkeys() 42 if (end > arg) in setup_dmcryptkeys()
|
| A D | vhost_task.c | 119 void (*handle_sigkill)(void *), void *arg, in vhost_task_create() argument 139 vtsk->data = arg; in vhost_task_create()
|
| A D | freezer.c | 108 static int __set_task_frozen(struct task_struct *p, void *arg) in __set_task_frozen() argument 189 static int __restore_freezer_state(struct task_struct *p, void *arg) in __restore_freezer_state() argument
|
| A D | cpu.c | 1353 static void cpuhp_complete_idle_dead(void *arg) in cpuhp_complete_idle_dead() argument 1355 struct cpuhp_cpu_state *st = arg; in cpuhp_complete_idle_dead() 1464 static long __cpu_down_maps_locked(void *arg) in __cpu_down_maps_locked() argument 1466 struct cpu_down_work *work = arg; in __cpu_down_maps_locked() 1800 static int __init parallel_bringup_parse_param(char *arg) in parallel_bringup_parse_param() argument 1802 return kstrtobool(arg, &__cpuhp_parallel_bringup); in parallel_bringup_parse_param() 3248 if (!strncmp(arg, pattern, strlen(pattern))) { in mitigations_parse_global_opt() 3257 static int __init mitigations_parse_cmdline(char *arg) in mitigations_parse_cmdline() argument 3262 len = mitigations_parse_global_opt(arg); in mitigations_parse_cmdline() 3271 p = arg + len; in mitigations_parse_cmdline() [all …]
|
| A D | ptrace.c | 713 struct ptrace_peeksiginfo_args arg; in ptrace_peek_siginfo() local 718 ret = copy_from_user(&arg, (void __user *) addr, in ptrace_peek_siginfo() 723 if (arg.flags & ~PTRACE_PEEKSIGINFO_SHARED) in ptrace_peek_siginfo() 726 if (arg.nr < 0) in ptrace_peek_siginfo() 730 if (arg.off > ULONG_MAX) in ptrace_peek_siginfo() 733 if (arg.flags & PTRACE_PEEKSIGINFO_SHARED) in ptrace_peek_siginfo() 738 for (i = 0; i < arg.nr; ) { in ptrace_peek_siginfo() 740 unsigned long off = arg.off + i; in ptrace_peek_siginfo()
|
| /kernel/kcsan/ |
| A D | debugfs.c | 224 char *arg; in debugfs_write() local 230 arg = strstrip(kbuf); in debugfs_write() 232 if (!strcmp(arg, "on")) { in debugfs_write() 234 } else if (!strcmp(arg, "off")) { in debugfs_write() 236 } else if (str_has_prefix(arg, "microbench=")) { in debugfs_write() 239 if (kstrtoul(&arg[strlen("microbench=")], 0, &iters)) in debugfs_write() 242 } else if (!strcmp(arg, "whitelist")) { in debugfs_write() 244 } else if (!strcmp(arg, "blacklist")) { in debugfs_write() 246 } else if (arg[0] == '!') { in debugfs_write() 247 ssize_t ret = insert_report_filterlist(&arg[1]); in debugfs_write()
|
| /kernel/power/ |
| A D | user.c | 250 unsigned long arg) in snapshot_ioctl() argument 313 error = put_user(in_suspend, (int __user *)arg); in snapshot_ioctl() 347 image_size = arg; in snapshot_ioctl() 357 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl() 363 error = put_user(size, (loff_t __user *)arg); in snapshot_ioctl() 374 error = put_user(offset, (loff_t __user *)arg); in snapshot_ioctl() 402 data->platform_support = !!arg; in snapshot_ioctl() 411 error = snapshot_set_swap_area(data, (void __user *)arg); in snapshot_ioctl() 427 snapshot_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in snapshot_compat_ioctl() argument 438 (unsigned long) compat_ptr(arg)); in snapshot_compat_ioctl() [all …]
|
| /kernel/irq/ |
| A D | msi.c | 63 int nvec, msi_alloc_info_t *arg); 702 unsigned int nr_irqs, void *arg) in msi_domain_alloc() argument 787 msi_alloc_info_t *arg) in msi_domain_ops_get_hwirq() argument 789 return arg->hwirq; in msi_domain_ops_get_hwirq() 793 int nvec, msi_alloc_info_t *arg) in msi_domain_ops_prepare() argument 795 memset(arg, 0, sizeof(*arg)); in msi_domain_ops_prepare() 806 arg->desc = desc; in msi_domain_ops_set_desc() 812 msi_alloc_info_t *arg) in msi_domain_ops_init() argument 1288 *arg = *info->alloc_data; in populate_alloc_info() 1299 msi_alloc_info_t arg = { }; in __msi_domain_alloc_irqs() local [all …]
|
| A D | irqdomain.c | 29 unsigned int nr_irqs, int node, void *arg, 1583 unsigned int nr_irqs, void *arg) in irq_domain_alloc_irqs_hierarchy() argument 1590 return domain->ops->alloc(domain, irq_base, nr_irqs, arg); in irq_domain_alloc_irqs_hierarchy() 1594 unsigned int nr_irqs, int node, void *arg, in irq_domain_alloc_irqs_locked() argument 1617 ret = irq_domain_alloc_irqs_hierarchy(domain, virq, nr_irqs, arg); in irq_domain_alloc_irqs_locked() 1662 unsigned int nr_irqs, int node, void *arg, in __irq_domain_alloc_irqs() argument 1714 int irq_domain_push_irq(struct irq_domain *domain, int virq, void *arg) in irq_domain_push_irq() argument 1770 rv = irq_domain_alloc_irqs_hierarchy(domain, virq, 1, arg); in irq_domain_push_irq() 1900 void *arg) in irq_domain_alloc_irqs_parent() argument 1906 nr_irqs, arg); in irq_domain_alloc_irqs_parent() [all …]
|
| /kernel/sched/ |
| A D | wait_bit.c | 24 int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *arg) in wake_bit_function() argument 26 struct wait_bit_key *key = arg; in wake_bit_function() 172 int sync, void *arg) in var_wake_function() argument 174 struct wait_bit_key *key = arg; in var_wake_function()
|
| A D | core.c | 3415 if (!cpu_active(arg->src_cpu) || !cpu_active(arg->dst_cpu)) in migrate_swap_stop() 3424 if (task_cpu(arg->dst_task) != arg->dst_cpu) in migrate_swap_stop() 3427 if (task_cpu(arg->src_task) != arg->src_cpu) in migrate_swap_stop() 3436 __migrate_swap_task(arg->src_task, arg->dst_cpu); in migrate_swap_stop() 3437 __migrate_swap_task(arg->dst_task, arg->src_cpu); in migrate_swap_stop() 3458 if (arg.src_cpu == arg.dst_cpu) in migrate_swap() 3465 if (!cpu_active(arg.src_cpu) || !cpu_active(arg.dst_cpu)) in migrate_swap() 3468 if (!cpumask_test_cpu(arg.dst_cpu, arg.src_task->cpus_ptr)) in migrate_swap() 3471 if (!cpumask_test_cpu(arg.src_cpu, arg.dst_task->cpus_ptr)) in migrate_swap() 3474 trace_sched_swap_numa(cur, arg.src_cpu, p, arg.dst_cpu); in migrate_swap() [all …]
|
| /kernel/rcu/ |
| A D | rcuscale.c | 458 rcu_scale_reader(void *arg) in rcu_scale_reader() argument 462 long me = (long)arg; in rcu_scale_reader() 533 rcu_scale_writer(void *arg) in rcu_scale_writer() argument 538 long me = (long)arg; in rcu_scale_writer() 733 kfree_scale_thread(void *arg) in kfree_scale_thread() argument 736 long me = (long)arg; in kfree_scale_thread() 834 kfree_scale_shutdown(void *arg) in kfree_scale_shutdown() argument 1073 rcu_scale_shutdown(void *arg) in rcu_scale_shutdown() argument
|
| /kernel/bpf/ |
| A D | inode.c | 346 static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkprog() argument 348 return bpf_mkobj_ops(dentry, mode, arg, &bpf_prog_iops, in bpf_mkprog() 352 static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkmap() argument 354 struct bpf_map *map = arg; in bpf_mkmap() 356 return bpf_mkobj_ops(dentry, mode, arg, &bpf_map_iops, in bpf_mkmap() 361 static int bpf_mklink(struct dentry *dentry, umode_t mode, void *arg) in bpf_mklink() argument 363 struct bpf_link *link = arg; in bpf_mklink() 365 return bpf_mkobj_ops(dentry, mode, arg, &bpf_link_iops, in bpf_mklink()
|