Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 18 of 18) sorted by relevance

/kernel/debug/kdb/
Dkdb_main.c382 int kdb_set(int argc, const char **argv) in kdb_set() argument
395 argv[2] = argv[3]; in kdb_set()
405 if (strcmp(argv[1], "KDBDEBUG") == 0) { in kdb_set()
409 debugflags = simple_strtoul(argv[2], &cp, 0); in kdb_set()
410 if (cp == argv[2] || debugflags & ~KDB_DEBUG_FLAG_MASK) { in kdb_set()
412 argv[2]); in kdb_set()
426 varlen = strlen(argv[1]); in kdb_set()
427 vallen = strlen(argv[2]); in kdb_set()
432 sprintf(ep, "%s=%s", argv[1], argv[2]); in kdb_set()
438 && ((strncmp(__env[i], argv[1], varlen) == 0) in kdb_set()
[all …]
Dkdb_bt.c106 kdb_bt(int argc, const char **argv) in kdb_bt() argument
118 if (strcmp(argv[0], "bta") == 0) { in kdb_bt()
121 unsigned long mask = kdb_task_state_string(argc ? argv[1] : in kdb_bt()
140 } else if (strcmp(argv[0], "btp") == 0) { in kdb_bt()
145 diag = kdbgetularg((char *)argv[1], &pid); in kdb_bt()
155 } else if (strcmp(argv[0], "btt") == 0) { in kdb_bt()
158 diag = kdbgetularg((char *)argv[1], &addr); in kdb_bt()
163 } else if (strcmp(argv[0], "btc") == 0) { in kdb_bt()
170 diag = kdbgetularg((char *)argv[1], &cpu); in kdb_bt()
176 argv = NULL; in kdb_bt()
[all …]
Dkdb_bp.c48 static int kdb_parsebp(int argc, const char **argv, int *nextargp, kdb_bp_t *bp) in kdb_parsebp() argument
55 if (strncasecmp(argv[nextarg], "datar", sizeof("datar")) == 0) in kdb_parsebp()
57 else if (strncasecmp(argv[nextarg], "dataw", sizeof("dataw")) == 0) in kdb_parsebp()
59 else if (strncasecmp(argv[nextarg], "inst", sizeof("inst")) == 0) in kdb_parsebp()
71 diag = kdbgetularg((char *)argv[nextarg], in kdb_parsebp()
277 static int kdb_bp(int argc, const char **argv) in kdb_bp() argument
302 diag = kdbgetaddrarg(argc, argv, &nextarg, &template.bp_addr, in kdb_bp()
320 if (strcmp(argv[0], "bph") == 0) { in kdb_bp()
322 diag = kdb_parsebp(argc, argv, &nextarg, &template); in kdb_bp()
377 static int kdb_bc(int argc, const char **argv) in kdb_bc() argument
[all …]
/kernel/
Dkmod.c66 kfree(info->argv[3]); /* check call_modprobe() */ in free_modprobe_argv()
67 kfree(info->argv); in free_modprobe_argv()
80 char **argv = kmalloc(sizeof(char *[5]), GFP_KERNEL); in call_modprobe() local
81 if (!argv) in call_modprobe()
88 argv[0] = modprobe_path; in call_modprobe()
89 argv[1] = "-q"; in call_modprobe()
90 argv[2] = "--"; in call_modprobe()
91 argv[3] = module_name; /* check free_modprobe_argv() */ in call_modprobe()
92 argv[4] = NULL; in call_modprobe()
94 info = call_usermodehelper_setup(modprobe_path, argv, envp, GFP_KERNEL, in call_modprobe()
[all …]
Dumh.c108 sub_info->argv, sub_info->envp); in call_usermodehelper_exec_async()
113 (const char __user *const __user *)sub_info->argv, in call_usermodehelper_exec_async()
379 struct subprocess_info *call_usermodehelper_setup(const char *path, char **argv, in call_usermodehelper_setup() argument
397 sub_info->argv = argv; in call_usermodehelper_setup()
420 sub_info->argv = argv_split(GFP_KERNEL, cmdline, NULL); in call_usermodehelper_setup_file()
421 if (!sub_info->argv) { in call_usermodehelper_setup_file()
478 argv_free(info->argv); in umh_clean_and_save_pid()
618 int call_usermodehelper(const char *path, char **argv, char **envp, int wait) in call_usermodehelper() argument
623 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
Dreboot.c426 char **argv; in run_cmd() local
433 argv = argv_split(GFP_KERNEL, cmd, NULL); in run_cmd()
434 if (argv) { in run_cmd()
435 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); in run_cmd()
436 argv_free(argv); in run_cmd()
Dauditsc.c164 return mask & ACC_MODE(ctx->argv[1]); in audit_match_perm()
166 return mask & ACC_MODE(ctx->argv[2]); in audit_match_perm()
168 return ((mask & AUDIT_PERM_WRITE) && ctx->argv[0] == SYS_BIND); in audit_match_perm()
692 result = audit_comparator(ctx->argv[f->type-AUDIT_ARG0], f->op, f->val); in audit_filter_rules()
1468 context->argv[0], in audit_log_exit()
1469 context->argv[1], in audit_log_exit()
1470 context->argv[2], in audit_log_exit()
1471 context->argv[3], in audit_log_exit()
1652 context->argv[0] = a1; in __audit_syscall_entry()
1653 context->argv[1] = a2; in __audit_syscall_entry()
[all …]
Daudit.h105 unsigned long argv[4]; /* syscall arguments */ member
/kernel/trace/
Dtrace_dynevent.c34 int dyn_event_release(int argc, char **argv, struct dyn_event_operations *type) in dyn_event_release() argument
40 if (argv[0][0] == '-') { in dyn_event_release()
41 if (argv[0][1] != ':') in dyn_event_release()
43 event = &argv[0][2]; in dyn_event_release()
45 event = strchr(argv[0], ':'); in dyn_event_release()
50 argc--; argv++; in dyn_event_release()
66 argc, (const char **)argv, pos)) in dyn_event_release()
78 static int create_dyn_event(int argc, char **argv) in create_dyn_event() argument
83 if (argv[0][0] == '-' || argv[0][0] == '!') in create_dyn_event()
84 return dyn_event_release(argc, argv, NULL); in create_dyn_event()
[all …]
Dtrace_kprobe.c38 static int trace_kprobe_create(int argc, const char **argv);
43 int argc, const char **argv, struct dyn_event *ev);
142 int argc, const char **argv) in trace_kprobe_match_command_head() argument
156 if (strcmp(buf, argv[0])) in trace_kprobe_match_command_head()
158 argc--; argv++; in trace_kprobe_match_command_head()
160 return trace_probe_match_command_args(&tk->tp, argc, argv); in trace_kprobe_match_command_head()
164 int argc, const char **argv, struct dyn_event *ev) in trace_kprobe_match() argument
170 trace_kprobe_match_command_head(tk, argc, argv); in trace_kprobe_match()
713 static int trace_kprobe_create(int argc, const char *argv[]) in trace_kprobe_create() argument
747 switch (argv[0][0]) { in trace_kprobe_create()
[all …]
Dtrace_uprobe.c43 static int trace_uprobe_create(int argc, const char **argv);
48 int argc, const char **argv, struct dyn_event *ev);
299 int argc, const char **argv) in trace_uprobe_match_command_head() argument
308 if (strncmp(tu->filename, argv[0], len) || argv[0][len] != ':') in trace_uprobe_match_command_head()
318 if (strcmp(buf, &argv[0][len + 1])) in trace_uprobe_match_command_head()
321 argc--; argv++; in trace_uprobe_match_command_head()
323 return trace_probe_match_command_args(&tu->tp, argc, argv); in trace_uprobe_match_command_head()
327 int argc, const char **argv, struct dyn_event *ev) in trace_uprobe_match() argument
333 trace_uprobe_match_command_head(tu, argc, argv); in trace_uprobe_match()
548 static int trace_uprobe_create(int argc, const char **argv) in trace_uprobe_create() argument
[all …]
Dtrace_dynevent.h42 int (*create)(int argc, const char *argv[]);
47 int argc, const char **argv, struct dyn_event *ev);
100 int dyn_event_release(int argc, char **argv, struct dyn_event_operations *type);
Dtrace_kdb.c95 static int kdb_ftdump(int argc, const char **argv) in kdb_ftdump() argument
107 skip_entries = simple_strtol(argv[1], &cp, 0); in kdb_ftdump()
113 cpu_file = simple_strtol(argv[2], &cp, 0); in kdb_ftdump()
Dtrace_probe.c145 void trace_probe_log_init(const char *subsystem, int argc, const char **argv) in trace_probe_log_init() argument
149 trace_probe_log.argv = argv; in trace_probe_log_init()
168 if (!trace_probe_log.argv) in __trace_probe_log_err()
175 len += strlen(trace_probe_log.argv[i]) + 1; in __trace_probe_log_err()
194 len = strlen(trace_probe_log.argv[i]); in __trace_probe_log_err()
195 strcpy(p, trace_probe_log.argv[i]); in __trace_probe_log_err()
1116 int argc, const char **argv) in trace_probe_match_command_args() argument
1127 if (strcmp(buf, argv[i])) in trace_probe_match_command_args()
Dtrace_probe.h338 int argc, const char **argv);
453 const char **argv; member
458 void trace_probe_log_init(const char *subsystem, int argc, const char **argv);
Dtrace_events_hist.c378 static int synth_event_create(int argc, const char **argv);
383 int argc, const char **argv, struct dyn_event *ev);
431 int argc, const char **argv, struct dyn_event *ev) in synth_event_match() argument
1009 static struct synth_field *parse_synth_field(int argc, const char **argv, in parse_synth_field() argument
1013 const char *prefix = NULL, *field_type = argv[0], *field_name, *array; in parse_synth_field()
1023 field_type = argv[1]; in parse_synth_field()
1024 field_name = argv[2]; in parse_synth_field()
1027 field_name = argv[1]; in parse_synth_field()
1290 static int __create_synth_event(int argc, const char *name, const char **argv) in __create_synth_event() argument
1315 if (strcmp(argv[i], ";") == 0) in __create_synth_event()
[all …]
Dtrace.c9014 char **argv; in trace_run_command() local
9019 argv = argv_split(GFP_KERNEL, buf, &argc); in trace_run_command()
9020 if (!argv) in trace_run_command()
9024 ret = createfn(argc, argv); in trace_run_command()
9026 argv_free(argv); in trace_run_command()
/kernel/cgroup/
Dcgroup-v1.c780 char *argv[3], *envp[3]; in cgroup1_release_agent() local
796 argv[0] = agentbuf; in cgroup1_release_agent()
797 argv[1] = pathbuf; in cgroup1_release_agent()
798 argv[2] = NULL; in cgroup1_release_agent()
806 call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); in cgroup1_release_agent()