Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 49) sorted by relevance

12

/kernel/
Dpanic.c278 va_list args; in panic() local
326 va_start(args, fmt); in panic()
327 len = vscnprintf(buf, sizeof(buf), fmt, args); in panic()
328 va_end(args); in panic()
648 va_list args; member
652 struct pt_regs *regs, struct warn_args *args) in __warn() argument
664 if (args) in __warn()
665 vprintk(args->fmt, args->args); in __warn()
691 struct warn_args args; in warn_slowpath_fmt() local
702 args.fmt = fmt; in warn_slowpath_fmt()
[all …]
Dfork.c2107 struct kernel_clone_args *args) in copy_process() argument
2113 const u64 clone_flags = args->flags; in copy_process()
2203 if (args->kthread) in copy_process()
2205 if (args->io_thread) { in copy_process()
2216 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? args->child_tid : NULL; in copy_process()
2220 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? args->child_tid : NULL; in copy_process()
2296 if (args->kthread) { in copy_process()
2379 retval = copy_thread(p, args); in copy_process()
2386 pid = alloc_pid(p->nsproxy->pid_ns_for_children, args->set_tid, in copy_process()
2387 args->set_tid_size); in copy_process()
[all …]
Dkthread.c427 va_list args) in __kthread_create_on_node() argument
475 va_copy(aq, args); in __kthread_create_on_node()
482 kthread->full_name = kvasprintf(GFP_KERNEL, namefmt, args); in __kthread_create_on_node()
519 va_list args; in kthread_create_on_node() local
521 va_start(args, namefmt); in kthread_create_on_node()
522 task = __kthread_create_on_node(threadfn, data, node, namefmt, args); in kthread_create_on_node()
523 va_end(args); in kthread_create_on_node()
852 const char namefmt[], va_list args) in __kthread_create_worker() argument
868 node, namefmt, args); in __kthread_create_worker()
898 va_list args; in kthread_create_worker() local
[all …]
Dkmod.c126 va_list args; in __request_module() local
141 va_start(args, fmt); in __request_module()
142 ret = vsnprintf(module_name, MODULE_NAME_LEN, fmt, args); in __request_module()
143 va_end(args); in __request_module()
Dparams.c162 char *args, in parse_args() argument
174 args = skip_spaces(args); in parse_args()
176 if (*args) in parse_args()
177 pr_debug("doing %s, parsing ARGS: '%s'\n", doing, args); in parse_args()
179 while (*args) { in parse_args()
183 args = next_arg(args, &param, &val); in parse_args()
186 return err ?: args; in parse_args()
Dseccomp.c249 unsigned long args[6]; in populate_seccomp_data() local
253 syscall_get_arguments(task, regs, args); in populate_seccomp_data()
254 sd->args[0] = args[0]; in populate_seccomp_data()
255 sd->args[1] = args[1]; in populate_seccomp_data()
256 sd->args[2] = args[2]; in populate_seccomp_data()
257 sd->args[3] = args[3]; in populate_seccomp_data()
258 sd->args[4] = args[4]; in populate_seccomp_data()
259 sd->args[5] = args[5]; in populate_seccomp_data()
Dcrash_core.c373 va_list args; in vmcoreinfo_append_str() local
377 va_start(args, fmt); in vmcoreinfo_append_str()
378 r = vscnprintf(buf, sizeof(buf), fmt, args); in vmcoreinfo_append_str()
379 va_end(args); in vmcoreinfo_append_str()
/kernel/power/
Dwakeup_reason.c217 va_list args) in __log_abort_or_abnormal_wake() argument
234 vsnprintf(non_irq_wake_reason, MAX_SUSPEND_ABORT_LEN, fmt, args); in __log_abort_or_abnormal_wake()
241 va_list args; in log_suspend_abort_reason() local
243 va_start(args, fmt); in log_suspend_abort_reason()
244 __log_abort_or_abnormal_wake(true, fmt, args); in log_suspend_abort_reason()
245 va_end(args); in log_suspend_abort_reason()
251 va_list args; in log_abnormal_wakeup_reason() local
253 va_start(args, fmt); in log_abnormal_wakeup_reason()
254 __log_abort_or_abnormal_wake(false, fmt, args); in log_abnormal_wakeup_reason()
255 va_end(args); in log_abnormal_wakeup_reason()
/kernel/livepatch/
Dcore.c131 struct klp_find_arg *args = data; in klp_find_callback() local
133 if ((mod && !args->objname) || (!mod && args->objname)) in klp_find_callback()
136 if (strcmp(args->name, name)) in klp_find_callback()
139 if (args->objname && strcmp(args->objname, mod->name)) in klp_find_callback()
142 args->addr = addr; in klp_find_callback()
143 args->count++; in klp_find_callback()
149 if ((args->pos && (args->count == args->pos)) || in klp_find_callback()
150 (!args->pos && (args->count > 1))) in klp_find_callback()
159 struct klp_find_arg args = { in klp_find_object_symbol() local
168 module_kallsyms_on_each_symbol(klp_find_callback, &args); in klp_find_object_symbol()
[all …]
/kernel/trace/
Dtrace_syscalls.c161 trace_seq_printf(s, "%s: %lx%s", entry->args[i], in print_syscall_enter()
162 trace->args[i], in print_syscall_enter()
221 entry->args[i], sizeof(unsigned long), in __set_enter_print_fmt()
228 ", ((unsigned long)(REC->%s))", entry->args[i]); in __set_enter_print_fmt()
274 int offset = offsetof(typeof(trace), args); in syscall_enter_define_fields()
280 meta->args[i], offset, in syscall_enter_define_fields()
298 unsigned long args[6]; in ftrace_syscall_enter() local
326 syscall_get_arguments(current, regs, args); in ftrace_syscall_enter()
327 memcpy(entry->args, args, sizeof(unsigned long) * sys_data->nb_args); in ftrace_syscall_enter()
560 unsigned long args[SYSCALL_DEFINE_MAXARGS]; in perf_call_bpf_enter() member
[all …]
Dtrace_export.c61 #define F_STRUCT(args...) args argument
64 #define F_printk(fmt, args...) fmt, args argument
159 #define F_printk(fmt, args...) __stringify(fmt) ", " __stringify(args) argument
Dtrace_probe.c782 struct probe_arg *args, int narg) in traceprobe_conflict_field_name() argument
791 if (strcmp(args[i].name, name) == 0) in traceprobe_conflict_field_name()
800 struct probe_arg *parg = &tp->args[i]; in traceprobe_parse_probe_arg()
829 if (traceprobe_conflict_field_name(parg->name, tp->args, i)) { in traceprobe_parse_probe_arg()
919 parg = tp->args + i; in __set_print_fmt()
936 parg = tp->args + i; in __set_print_fmt()
986 struct probe_arg *parg = &tp->args[i]; in traceprobe_define_arg_fields()
1039 traceprobe_free_probe_arg(&tp->args[i]); in trace_probe_cleanup()
1192 ((a->args[i].type != b->args[i].type) || in trace_probe_compare_arg_type()
1193 (a->args[i].count != b->args[i].count) || in trace_probe_compare_arg_type()
[all …]
Dtrace_kprobe.c267 tk = kzalloc(struct_size(tk, tp.args, nargs), GFP_KERNEL); in alloc_trace_kprobe()
496 ret = traceprobe_update_arg(&tk->tp.args[i]); in __register_trace_kprobe()
575 if (strcmp(orig->tp.args[i].comm, in trace_kprobe_has_same_kprobe()
576 comp->tp.args[i].comm)) in trace_kprobe_has_same_kprobe()
1031 va_list args; in __kprobe_event_gen_cmd_start() local
1055 va_start(args, loc); in __kprobe_event_gen_cmd_start()
1059 field = va_arg(args, const char *); in __kprobe_event_gen_cmd_start()
1073 va_end(args); in __kprobe_event_gen_cmd_start()
1098 va_list args; in __kprobe_event_add_fields() local
1106 va_start(args, cmd); in __kprobe_event_add_fields()
[all …]
Dtrace_probe_tmpl.h221 arg = tp->args + i; in __get_data_size()
244 arg = tp->args + i; in store_trace_args()
258 print_probe_args(struct trace_seq *s, struct probe_arg *args, int nr_args, in print_probe_args() argument
265 struct probe_arg *a = args + i; in print_probe_args()
Dtrace_eprobe.c79 seq_printf(m, " %s=%s", ep->tp.args[i].name, ep->tp.args[i].comm); in eprobe_dyn_event_show()
206 ep = kzalloc(struct_size(ep, tp.args, nargs), GFP_KERNEL); in alloc_event_probe()
232 struct probe_arg *parg = &ep->tp.args[i]; in trace_eprobe_tp_arg_update()
314 if (print_probe_args(s, tp->args, tp->nr_args, in print_eprobe_event()
388 arg = tp->args + i; in get_eprobe_size()
909 if (ep->tp.args[i].code->op == FETCH_OP_TP_ARG) { in trace_eprobe_tp_update_arg()
917 ret = traceprobe_update_arg(&ep->tp.args[i]); in trace_eprobe_tp_update_arg()
Dtrace_events_user.c150 char *args, char *flags,
335 char *args = strpbrk(name, " "); in user_event_parse_cmd() local
338 if (args) in user_event_parse_cmd()
339 *args++ = '\0'; in user_event_parse_cmd()
346 return user_event_parse(group, name, args, flags, newuser); in user_event_parse_cmd()
598 static int user_event_parse_fields(struct user_event *user, char *args) in user_event_parse_fields() argument
604 if (args == NULL) in user_event_parse_fields()
607 while ((field = strsep(&args, ";")) != NULL) { in user_event_parse_fields()
1273 char *args, char *flags, in user_event_parse() argument
1313 ret = user_event_parse_fields(user, args); in user_event_parse()
/kernel/printk/
Dprintk_safe.c29 asmlinkage int vprintk(const char *fmt, va_list args) in vprintk() argument
34 return vkdb_printf(KDB_MSGSRC_PRINTK, fmt, args); in vprintk()
42 return vprintk_deferred(fmt, args); in vprintk()
45 return vprintk_default(fmt, args); in vprintk()
Dinternal.h26 const char *fmt, va_list args);
28 __printf(1, 0) int vprintk_default(const char *fmt, va_list args);
29 __printf(1, 0) int vprintk_deferred(const char *fmt, va_list args);
Dprintk.c647 va_list args; in devkmsg_emit() local
650 va_start(args, fmt); in devkmsg_emit()
651 r = vprintk_emit(facility, level, NULL, fmt, args); in devkmsg_emit()
652 va_end(args); in devkmsg_emit()
2087 va_list args) in printk_sprint() argument
2091 text_len = vscnprintf(text, size, fmt, args); in printk_sprint()
2120 const char *fmt, va_list args) in vprintk_store() argument
2155 va_copy(args2, args); in vprintk_store()
2176 facility, &flags, fmt, args); in vprintk_store()
2207 text_len = printk_sprint(&r.text_buf[0], reserve_size, facility, &flags, fmt, args); in vprintk_store()
[all …]
/kernel/bpf/
Doffload.c267 struct ns_get_path_bpf_prog_args *args = private_data; in bpf_prog_offload_info_fill_ns() local
268 struct bpf_prog_aux *aux = args->prog->aux; in bpf_prog_offload_info_fill_ns()
276 args->info->ifindex = aux->offload->netdev->ifindex; in bpf_prog_offload_info_fill_ns()
281 args->info->ifindex = 0; in bpf_prog_offload_info_fill_ns()
294 struct ns_get_path_bpf_prog_args args = { in bpf_prog_offload_info_fill() local
305 res = ns_get_path_cb(&ns_path, bpf_prog_offload_info_fill_ns, &args); in bpf_prog_offload_info_fill()
495 struct ns_get_path_bpf_map_args *args = private_data; in bpf_map_offload_info_fill_ns() local
502 if (args->offmap->netdev) { in bpf_map_offload_info_fill_ns()
503 args->info->ifindex = args->offmap->netdev->ifindex; in bpf_map_offload_info_fill_ns()
504 net = dev_net(args->offmap->netdev); in bpf_map_offload_info_fill_ns()
[all …]
Dbtf.c382 void (*showfn)(struct btf_show *show, const char *fmt, va_list args);
1101 va_list args; in btf_show() local
1104 va_start(args, fmt); in btf_show()
1105 show->showfn(show, fmt, args); in btf_show()
1106 va_end(args); in btf_show()
1370 va_list args; in __btf_verifier_log() local
1372 va_start(args, fmt); in __btf_verifier_log()
1373 bpf_verifier_vlog(log, fmt, args); in __btf_verifier_log()
1374 va_end(args); in __btf_verifier_log()
1381 va_list args; in btf_verifier_log() local
[all …]
Dbpf_lsm.c75 const struct btf_param *args __maybe_unused; in BTF_SET_END()
85 args = btf_params(prog->aux->attach_func_proto); in BTF_SET_END()
87 if (args[0].type == btf_sock_ids[BTF_SOCK_TYPE_SOCKET]) in BTF_SET_END()
89 else if (args[0].type == btf_sock_ids[BTF_SOCK_TYPE_SOCK]) in BTF_SET_END()
/kernel/entry/
Dcommon.c41 unsigned long args[6]; in syscall_enter_audit() local
43 syscall_get_arguments(current, regs, args); in syscall_enter_audit()
44 audit_syscall_entry(syscall, args[0], args[1], args[2], args[3]); in syscall_enter_audit()
/kernel/debug/kdb/
Dkdb_private.h235 #define kdb_func_printf(format, args...) \ argument
236 kdb_printf("%s: " format, __func__, ## args)
238 #define kdb_dbg_printf(mask, format, args...) \ argument
241 kdb_func_printf(format, ## args); \
/kernel/time/
Dtimer_list.c33 va_list args; in SEQ_printf() local
35 va_start(args, fmt); in SEQ_printf()
38 seq_vprintf(m, fmt, args); in SEQ_printf()
40 vprintk(fmt, args); in SEQ_printf()
42 va_end(args); in SEQ_printf()

12