Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 17 of 17) sorted by relevance

/kernel/debug/kdb/
Dkdb_main.c459 int kdb_set(int argc, const char **argv) in kdb_set() argument
467 if (argc == 3) { in kdb_set()
469 argc--; in kdb_set()
472 if (argc != 2) in kdb_set()
543 int kdbgetaddrarg(int argc, const char **argv, int *nextarg, in kdbgetaddrarg() argument
574 if (*nextarg > argc) in kdbgetaddrarg()
626 if ((*nextarg > argc) in kdbgetaddrarg()
651 if ((*nextarg > argc) in kdbgetaddrarg()
722 static int kdb_exec_defcmd(int argc, const char **argv);
751 static int kdb_defcmd(int argc, const char **argv) in kdb_defcmd() argument
[all …]
Dkdb_bt.c127 kdb_bt(int argc, const char **argv) in kdb_bt() argument
141 const char *mask = argc ? argv[1] : kdbgetenv("PS"); in kdb_bt()
143 if (argc == 0) in kdb_bt()
163 if (argc != 1) in kdb_bt()
174 if (argc != 1) in kdb_bt()
182 if (argc > 1) in kdb_bt()
184 if (argc == 1) { in kdb_bt()
206 if (argc) { in kdb_bt()
208 diag = kdbgetaddrarg(argc, argv, &nextarg, &addr, in kdb_bt()
Dkdb_bp.c48 static int kdb_parsebp(int argc, const char **argv, int *nextargp, kdb_bp_t *bp) in kdb_parsebp() argument
54 if ((argc + 1) != nextarg) { in kdb_parsebp()
68 if ((argc + 1) != nextarg) { in kdb_parsebp()
84 if ((argc + 1) != nextarg) in kdb_parsebp()
277 static int kdb_bp(int argc, const char **argv) in kdb_bp() argument
287 if (argc == 0) { in kdb_bp()
302 diag = kdbgetaddrarg(argc, argv, &nextarg, &template.bp_addr, 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
408 if (argc != 1) in kdb_bc()
[all …]
/kernel/trace/
Dtrace_eprobe.c48 static int __trace_eprobe_create(int argc, const char *argv[]);
128 int argc, const char **argv, struct dyn_event *ev) in eprobe_dyn_event_match() argument
160 if (argc < 1) in eprobe_dyn_event_match()
176 argc--; in eprobe_dyn_event_match()
180 if (argc < 1) in eprobe_dyn_event_match()
183 return trace_probe_match_command_args(&ep->tp, argc, argv); in eprobe_dyn_event_match()
818 static int trace_eprobe_parse_filter(struct trace_eprobe *ep, int argc, const char *argv[]) in trace_eprobe_parse_filter() argument
824 if (argc == 0) { in trace_eprobe_parse_filter()
830 for (i = 0; i < argc; i++) in trace_eprobe_parse_filter()
838 for (i = 0; i < argc; i++) { in trace_eprobe_parse_filter()
[all …]
Dtrace_fprobe.c29 int argc, const char **argv, struct dyn_event *ev);
93 int argc, const char **argv) in trace_fprobe_match_command_head() argument
97 if (!argc) in trace_fprobe_match_command_head()
103 argc--; argv++; in trace_fprobe_match_command_head()
105 return trace_probe_match_command_args(&tf->tp, argc, argv); in trace_fprobe_match_command_head()
109 int argc, const char **argv, struct dyn_event *ev) in trace_fprobe_match() argument
119 return trace_fprobe_match_command_head(tf, argc, argv); in trace_fprobe_match()
901 static int parse_symbol_and_return(int argc, const char *argv[], in parse_symbol_and_return() argument
927 for (i = 2; i < argc; i++) { in parse_symbol_and_return()
942 static int __trace_fprobe_create(int argc, const char *argv[]) in __trace_fprobe_create() argument
[all …]
Dtrace_kdb.c95 static int kdb_ftdump(int argc, const char **argv) in kdb_ftdump() argument
103 if (argc > 2) in kdb_ftdump()
106 if (argc) { in kdb_ftdump()
112 if (argc == 2) { in kdb_ftdump()
Dtrace_probe.c157 void trace_probe_log_init(const char *subsystem, int argc, const char **argv) in trace_probe_log_init() argument
160 trace_probe_log.argc = argc; in trace_probe_log_init()
184 for (i = 0; i < trace_probe_log.argc; i++) { in __trace_probe_log_err()
193 if (trace_probe_log.index >= trace_probe_log.argc) { in __trace_probe_log_err()
205 for (i = 0; i < trace_probe_log.argc; i++) { in __trace_probe_log_err()
1436 static int argv_has_var_arg(int argc, const char *argv[], int *args_idx, in argv_has_var_arg() argument
1441 for (i = 0; i < argc; i++) in argv_has_var_arg()
1460 if (*args_idx >= 0 && *args_idx < argc) { in argv_has_var_arg()
1496 const char **traceprobe_expand_meta_args(int argc, const char *argv[], in traceprobe_expand_meta_args() argument
1504 ret = argv_has_var_arg(argc, argv, &args_idx, ctx); in traceprobe_expand_meta_args()
[all …]
Dtrace_events_user.c205 static bool user_fields_match(struct user_event *user, int argc,
1323 static int user_dyn_field_set_string(int argc, const char **argv, int *iout, in user_dyn_field_set_string() argument
1330 for (; i < argc; ++i) { in user_dyn_field_set_string()
1498 char *name, int argc, const char **argv, in find_user_event() argument
1510 if (user_fields_match(user, argc, argv)) in find_user_event()
1828 static bool user_field_match(struct ftrace_event_field *field, int argc, in user_field_match() argument
1835 if (*iout >= argc) in user_field_match()
1838 dyn_len = user_dyn_field_set_string(argc, argv, iout, dyn_field_name, in user_field_match()
1852 user_dyn_field_set_string(argc, argv, iout, dyn_field_name, in user_field_match()
1865 static bool user_fields_match(struct user_event *user, int argc, in user_fields_match() argument
[all …]
Dtrace_uprobe.c44 int argc, const char **argv, struct dyn_event *ev);
277 int argc, const char **argv) in trace_uprobe_match_command_head() argument
282 if (!argc) in trace_uprobe_match_command_head()
299 argc--; argv++; in trace_uprobe_match_command_head()
301 return trace_probe_match_command_args(&tu->tp, argc, argv); in trace_uprobe_match_command_head()
305 int argc, const char **argv, struct dyn_event *ev) in trace_uprobe_match() argument
312 trace_uprobe_match_command_head(tu, argc, argv); in trace_uprobe_match()
532 static int __trace_uprobe_create(int argc, const char **argv) in __trace_uprobe_create() argument
557 if (argc < 2) in __trace_uprobe_create()
577 trace_probe_log_init("trace_uprobe", argc, argv); in __trace_uprobe_create()
[all …]
Dtrace_kprobe.c45 int argc, const char **argv, struct dyn_event *ev);
141 int argc, const char **argv) in trace_kprobe_match_command_head() argument
145 if (!argc) 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()
743 static int __trace_kprobe_create(int argc, const char *argv[]) in __trace_kprobe_create() argument
793 if (argc < 2) in __trace_kprobe_create()
796 trace_probe_log_init("trace_kprobe", argc, argv); in __trace_kprobe_create()
[all …]
Dtrace_events_synth.c92 int argc, const char **argv, struct dyn_event *ev);
120 int argc, const char **argv, struct dyn_event *ev) in synth_event_match() argument
689 static struct synth_field *parse_synth_field(int argc, char **argv, in parse_synth_field() argument
699 if (argc < 3) { in parse_synth_field()
1276 int i, argc, n_fields = 0, ret = 0; in __create_synth_event() local
1312 argv = argv_split(GFP_KERNEL, field_str, &argc); in __create_synth_event()
1318 if (!argc) { in __create_synth_event()
1325 while (argc > consumed) { in __create_synth_event()
1328 field = parse_synth_field(argc - consumed, in __create_synth_event()
1370 if (consumed < argc) { in __create_synth_event()
[all …]
Dtrace_dynevent.c76 int argc, ret = -ENOENT; in dyn_event_release() local
79 argv = argv_split(GFP_KERNEL, raw_command, &argc); in dyn_event_release()
114 argc - 1, (const char **)argv + 1, pos)) in dyn_event_release()
Dtrace_probe.h353 int argc, const char **argv);
402 const char **traceprobe_expand_meta_args(int argc, const char *argv[],
532 int argc; member
536 void trace_probe_log_init(const char *subsystem, int argc, const char **argv);
Dtrace_dynevent.h47 int argc, const char **argv, struct dyn_event *ev);
/kernel/module/
Dkdb.c17 int kdb_lsmod(int argc, const char **argv) in kdb_lsmod() argument
21 if (argc != 0) in kdb_lsmod()
/kernel/
Daudit.h199 int argc; member
Dauditsc.c1162 audit_log_format(*ab, "argc=%d", context->execve.argc); in audit_log_execve_info()
1291 } while (arg < context->execve.argc); in audit_log_execve_info()
2664 context->execve.argc = bprm->argc; in __audit_bprm()