Home
last modified time | relevance | path

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

/kernel/debug/kdb/
Dkdb_main.c380 int kdb_set(int argc, const char **argv) in kdb_set() argument
393 argv[2] = argv[3]; in kdb_set()
403 if (strcmp(argv[1], "KDBDEBUG") == 0) { in kdb_set()
407 debugflags = simple_strtoul(argv[2], &cp, 0); in kdb_set()
408 if (cp == argv[2] || debugflags & ~KDB_DEBUG_FLAG_MASK) { in kdb_set()
410 argv[2]); in kdb_set()
424 varlen = strlen(argv[1]); in kdb_set()
425 vallen = strlen(argv[2]); in kdb_set()
430 sprintf(ep, "%s=%s", argv[1], argv[2]); in kdb_set()
436 && ((strncmp(__env[i], argv[1], varlen) == 0) in kdb_set()
[all …]
Dkdb_bt.c105 kdb_bt(int argc, const char **argv) in kdb_bt() argument
117 if (strcmp(argv[0], "bta") == 0) { in kdb_bt()
120 unsigned long mask = kdb_task_state_string(argc ? argv[1] : in kdb_bt()
139 } else if (strcmp(argv[0], "btp") == 0) { in kdb_bt()
144 diag = kdbgetularg((char *)argv[1], &pid); in kdb_bt()
154 } else if (strcmp(argv[0], "btt") == 0) { in kdb_bt()
157 diag = kdbgetularg((char *)argv[1], &addr); in kdb_bt()
162 } else if (strcmp(argv[0], "btc") == 0) { in kdb_bt()
169 diag = kdbgetularg((char *)argv[1], &cpu); in kdb_bt()
175 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 …]
Dreboot.c394 char **argv; in run_cmd() local
401 argv = argv_split(GFP_KERNEL, cmd, NULL); in run_cmd()
402 if (argv) { in run_cmd()
403 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); in run_cmd()
404 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()
672 result = audit_comparator(ctx->argv[f->type-AUDIT_ARG0], f->op, f->val); in audit_filter_rules()
1346 context->argv[0], in audit_log_exit()
1347 context->argv[1], in audit_log_exit()
1348 context->argv[2], in audit_log_exit()
1349 context->argv[3], in audit_log_exit()
1509 context->argv[0] = a1; in __audit_syscall_entry()
1510 context->argv[1] = a2; in __audit_syscall_entry()
[all …]
Daudit.h115 unsigned long argv[4]; /* syscall arguments */ member
Dcgroup.c5778 char *argv[3], *envp[3]; in cgroup_release_agent() local
5791 argv[0] = agentbuf; in cgroup_release_agent()
5792 argv[1] = path; in cgroup_release_agent()
5793 argv[2] = NULL; in cgroup_release_agent()
5801 call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); in cgroup_release_agent()
/kernel/trace/
Dtrace_kdb.c102 static int kdb_ftdump(int argc, const char **argv) in kdb_ftdump() argument
112 skip_lines = simple_strtol(argv[1], &cp, 0); in kdb_ftdump()
118 cpu_file = simple_strtol(argv[2], &cp, 0); in kdb_ftdump()
Dtrace_uprobe.c364 static int create_trace_uprobe(int argc, char **argv) in create_trace_uprobe() argument
383 if (argv[0][0] == '-') in create_trace_uprobe()
385 else if (argv[0][0] == 'r') in create_trace_uprobe()
387 else if (argv[0][0] != 'p') { in create_trace_uprobe()
392 if (argv[0][1] == ':') { in create_trace_uprobe()
393 event = &argv[0][2]; in create_trace_uprobe()
439 if (isdigit(argv[1][0])) { in create_trace_uprobe()
443 arg = strchr(argv[1], ':'); in create_trace_uprobe()
450 filename = argv[1]; in create_trace_uprobe()
468 argv += 2; in create_trace_uprobe()
[all …]
Dtrace_kprobe.c588 static int create_trace_kprobe(int argc, char **argv) in create_trace_kprobe() argument
618 if (argv[0][0] == 'p') in create_trace_kprobe()
620 else if (argv[0][0] == 'r') in create_trace_kprobe()
622 else if (argv[0][0] == '-') in create_trace_kprobe()
630 if (argv[0][1] == ':') { in create_trace_kprobe()
631 event = &argv[0][2]; in create_trace_kprobe()
676 if (kstrtoul(argv[1], 0, (unsigned long *)&addr)) { in create_trace_kprobe()
678 symbol = argv[1]; in create_trace_kprobe()
693 argc -= 2; argv += 2; in create_trace_kprobe()
723 arg = strchr(argv[i], '='); in create_trace_kprobe()
[all …]
Dtrace_probe.c588 char **argv; in traceprobe_command() local
593 argv = argv_split(GFP_KERNEL, buf, &argc); in traceprobe_command()
594 if (!argv) in traceprobe_command()
598 ret = createfn(argc, argv); in traceprobe_command()
600 argv_free(argv); in traceprobe_command()