/kernel/debug/kdb/ |
D | kdb_main.c | 459 int kdb_set(int argc, const char **argv) in kdb_set() argument 468 argv[2] = argv[3]; in kdb_set() 478 if (strcmp(argv[1], "PROMPT") == 0 && in kdb_set() 485 if (strcmp(argv[1], "KDBDEBUG") == 0) { in kdb_set() 489 debugflags = simple_strtoul(argv[2], &cp, 0); in kdb_set() 490 if (cp == argv[2] || debugflags & ~KDB_DEBUG_FLAG_MASK) { in kdb_set() 492 argv[2]); in kdb_set() 505 return kdb_setenv(argv[1], argv[2]); in kdb_set() 543 int kdbgetaddrarg(int argc, const char **argv, int *nextarg, in kdbgetaddrarg() argument 577 symname = (char *)argv[*nextarg]; in kdbgetaddrarg() [all …]
|
D | kdb_bt.c | 127 kdb_bt(int argc, const char **argv) in kdb_bt() argument 138 if (strcmp(argv[0], "bta") == 0) { in kdb_bt() 141 const char *mask = argc ? argv[1] : kdbgetenv("PS"); in kdb_bt() 160 } else if (strcmp(argv[0], "btp") == 0) { in kdb_bt() 165 diag = kdbgetularg((char *)argv[1], &pid); in kdb_bt() 173 } else if (strcmp(argv[0], "btt") == 0) { in kdb_bt() 176 diag = kdbgetularg((char *)argv[1], &addr); in kdb_bt() 180 } else if (strcmp(argv[0], "btc") == 0) { in kdb_bt() 185 diag = kdbgetularg((char *)argv[1], &cpu); in kdb_bt() 196 argv = NULL; in kdb_bt() [all …]
|
D | kdb_bp.c | 48 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() 329 if (strcmp(argv[0], "bph") == 0) { in kdb_bp() 331 diag = kdb_parsebp(argc, argv, &nextarg, &template); in kdb_bp() 386 static int kdb_bc(int argc, const char **argv) in kdb_bc() argument [all …]
|
/kernel/ |
D | kmod.c | 65 kfree(info->argv[3]); /* check call_modprobe() */ in free_modprobe_argv() 66 kfree(info->argv); in free_modprobe_argv() 79 char **argv = kmalloc(sizeof(char *[5]), GFP_KERNEL); in call_modprobe() local 80 if (!argv) in call_modprobe() 87 argv[0] = modprobe_path; in call_modprobe() 88 argv[1] = "-q"; in call_modprobe() 89 argv[2] = "--"; in call_modprobe() 90 argv[3] = module_name; /* check free_modprobe_argv() */ in call_modprobe() 91 argv[4] = NULL; in call_modprobe() 93 info = call_usermodehelper_setup(modprobe_path, argv, envp, GFP_KERNEL, in call_modprobe() [all …]
|
D | umh.c | 114 (const char *const *)sub_info->argv, in call_usermodehelper_exec_async() 359 struct subprocess_info *call_usermodehelper_setup(const char *path, char **argv, in call_usermodehelper_setup() argument 377 sub_info->argv = argv; in call_usermodehelper_setup() 486 int call_usermodehelper(const char *path, char **argv, char **envp, int wait) in call_usermodehelper() argument 491 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
|
D | reboot.c | 816 char **argv; in run_cmd() local 823 argv = argv_split(GFP_KERNEL, cmd, NULL); in run_cmd() 824 if (argv) { in run_cmd() 825 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); in run_cmd() 826 argv_free(argv); in run_cmd()
|
D | usermode_driver.c | 172 const char *argv[] = { info->driver_name, NULL }; in fork_usermode_driver() local 180 (char **)argv, NULL, GFP_KERNEL, in fork_usermode_driver()
|
D | auditsc.c | 180 return mask & ACC_MODE(ctx->argv[1]); in audit_match_perm() 182 return mask & ACC_MODE(ctx->argv[2]); in audit_match_perm() 184 return ((mask & AUDIT_PERM_WRITE) && ctx->argv[0] == SYS_BIND); in audit_match_perm() 727 result = audit_comparator(ctx->argv[f->type-AUDIT_ARG0], f->op, f->val); in audit_filter_rules() 992 memset(ctx->argv, 0, sizeof(ctx->argv)); in audit_reset_context() 1700 context->argv[0], in audit_log_exit() 1701 context->argv[1], in audit_log_exit() 1702 context->argv[2], in audit_log_exit() 1703 context->argv[3], in audit_log_exit() 2036 context->argv[0] = a1; in __audit_syscall_entry() [all …]
|
D | audit.h | 114 unsigned long argv[4]; /* syscall arguments */ member
|
/kernel/trace/ |
D | trace_eprobe.c | 44 static int __trace_eprobe_create(int argc, const char *argv[]); 124 int argc, const char **argv, struct dyn_event *ev) in eprobe_dyn_event_match() argument 161 slash = strchr(argv[0], '/'); in eprobe_dyn_event_match() 163 slash = strchr(argv[0], '.'); in eprobe_dyn_event_match() 167 if (strncmp(ep->event_system, argv[0], slash - argv[0])) in eprobe_dyn_event_match() 173 argv++; in eprobe_dyn_event_match() 179 return trace_probe_match_command_args(&ep->tp, argc, argv); in eprobe_dyn_event_match() 900 static int trace_eprobe_tp_update_arg(struct trace_eprobe *ep, const char *argv[], int i) in trace_eprobe_tp_update_arg() argument 905 ret = traceprobe_parse_probe_arg(&ep->tp, i, argv[i], flags); in trace_eprobe_tp_update_arg() 922 static int trace_eprobe_parse_filter(struct trace_eprobe *ep, int argc, const char *argv[]) in trace_eprobe_parse_filter() argument [all …]
|
D | trace_dynevent.c | 77 char **argv; in dyn_event_release() local 79 argv = argv_split(GFP_KERNEL, raw_command, &argc); in dyn_event_release() 80 if (!argv) in dyn_event_release() 83 if (argv[0][0] == '-') { in dyn_event_release() 84 if (argv[0][1] != ':') { in dyn_event_release() 88 event = &argv[0][2]; in dyn_event_release() 90 event = strchr(argv[0], ':'); in dyn_event_release() 114 argc - 1, (const char **)argv + 1, pos)) in dyn_event_release() 124 argv_free(argv); in dyn_event_release()
|
D | trace_uprobe.c | 44 int argc, const char **argv, struct dyn_event *ev); 285 int argc, const char **argv) in trace_uprobe_match_command_head() argument 294 if (strncmp(tu->filename, argv[0], len) || argv[0][len] != ':') in trace_uprobe_match_command_head() 304 if (strcmp(buf, &argv[0][len + 1])) in trace_uprobe_match_command_head() 307 argc--; argv++; in trace_uprobe_match_command_head() 309 return trace_probe_match_command_args(&tu->tp, argc, argv); in trace_uprobe_match_command_head() 313 int argc, const char **argv, struct dyn_event *ev) in trace_uprobe_match() argument 320 trace_uprobe_match_command_head(tu, argc, argv); in trace_uprobe_match() 540 static int __trace_uprobe_create(int argc, const char **argv) in __trace_uprobe_create() argument 555 switch (argv[0][0]) { in __trace_uprobe_create() [all …]
|
D | trace_kprobe.c | 45 int argc, const char **argv, struct dyn_event *ev); 141 int argc, const char **argv) in trace_kprobe_match_command_head() argument 155 if (strcmp(buf, argv[0])) in trace_kprobe_match_command_head() 157 argc--; argv++; in trace_kprobe_match_command_head() 159 return trace_probe_match_command_args(&tk->tp, argc, argv); in trace_kprobe_match_command_head() 163 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() 744 static int __trace_kprobe_create(int argc, const char *argv[]) in __trace_kprobe_create() argument 783 switch (argv[0][0]) { in __trace_kprobe_create() 795 trace_probe_log_init("trace_kprobe", argc, argv); in __trace_kprobe_create() [all …]
|
D | trace_probe.c | 147 void trace_probe_log_init(const char *subsystem, int argc, const char **argv) in trace_probe_log_init() argument 151 trace_probe_log.argv = argv; in trace_probe_log_init() 170 if (!trace_probe_log.argv) in __trace_probe_log_err() 177 len += strlen(trace_probe_log.argv[i]) + 1; in __trace_probe_log_err() 196 len = strlen(trace_probe_log.argv[i]); in __trace_probe_log_err() 197 strcpy(p, trace_probe_log.argv[i]); in __trace_probe_log_err() 566 static int traceprobe_parse_probe_arg_body(const char *argv, ssize_t *size, in traceprobe_parse_probe_arg_body() argument 574 arg = kstrdup(argv, GFP_KERNEL); in traceprobe_parse_probe_arg_body() 1202 int argc, const char **argv) in trace_probe_match_command_args() argument 1213 if (strcmp(buf, argv[i])) in trace_probe_match_command_args() [all …]
|
D | trace_kdb.c | 95 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()
|
D | trace_events_synth.c | 92 int argc, const char **argv, struct dyn_event *ev); 120 int argc, const char **argv, struct dyn_event *ev) in synth_event_match() argument 705 static struct synth_field *parse_synth_field(int argc, char **argv, in parse_synth_field() argument 708 const char *prefix = NULL, *field_type = argv[0], *field_name, *array; in parse_synth_field() 720 field_type = argv[1]; in parse_synth_field() 721 field_name = argv[2]; in parse_synth_field() 724 field_name = argv[1]; in parse_synth_field() 1288 char **argv, *field_str, *tmp_fields, *saved_fields = NULL; in __create_synth_event() local 1327 argv = argv_split(GFP_KERNEL, field_str, &argc); in __create_synth_event() 1328 if (!argv) { in __create_synth_event() [all …]
|
D | trace_probe.h | 349 int argc, const char **argv); 364 const char *argv, unsigned int flags); 468 const char **argv; member 473 void trace_probe_log_init(const char *subsystem, int argc, const char **argv);
|
D | trace_events_user.c | 674 static int user_dyn_field_set_string(int argc, const char **argv, int *iout, in user_dyn_field_set_string() argument 685 pos += snprintf(buf + pos, LEN_OR_ZERO, "%s", argv[i]); in user_dyn_field_set_string() 687 if (strchr(argv[i], ';')) { in user_dyn_field_set_string() 1174 const char **argv, int *iout) in user_field_match() argument 1183 dyn_len = user_dyn_field_set_string(argc, argv, iout, dyn_field_name, in user_field_match() 1197 user_dyn_field_set_string(argc, argv, iout, dyn_field_name, in user_field_match() 1211 const char **argv) in user_fields_match() argument 1218 if (!user_field_match(field, argc, argv, &i)) in user_fields_match() 1228 int argc, const char **argv, struct dyn_event *ev) in user_event_match() argument 1237 match = user_fields_match(user, argc, argv); in user_event_match()
|
D | trace_dynevent.h | 47 int argc, const char **argv, struct dyn_event *ev);
|
/kernel/cgroup/ |
D | cgroup-v1.c | 788 char *argv[3], *envp[3]; in cgroup1_release_agent() local 811 argv[0] = agentbuf; in cgroup1_release_agent() 812 argv[1] = pathbuf; in cgroup1_release_agent() 813 argv[2] = NULL; in cgroup1_release_agent() 820 call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); in cgroup1_release_agent()
|
/kernel/module/ |
D | kdb.c | 17 int kdb_lsmod(int argc, const char **argv) in kdb_lsmod() argument
|