Lines Matching refs:argc
161 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument
165 while (*argc > 0) { in handle_options()
219 if (*argc < 2) { in handle_options()
227 (*argc)--; in handle_options()
229 if (*argc < 2) { in handle_options()
237 (*argc)--; in handle_options()
262 if (*argc < 2) { in handle_options()
270 (*argc)--; in handle_options()
277 (*argc)--; in handle_options()
286 static int run_builtin(struct cmd_struct *p, int argc, const char **argv) in run_builtin() argument
301 perf_env__set_cmdline(&perf_env, argc, argv); in run_builtin()
302 status = p->fn(argc, argv); in run_builtin()
339 static void handle_internal_command(int argc, const char **argv) in handle_internal_command() argument
345 if (argc > 1 && !strcmp(argv[1], "--help")) { in handle_internal_command()
354 exit(run_builtin(p, argc, argv)); in handle_internal_command()
423 int main(int argc, const char **argv) in main() argument
462 handle_internal_command(argc, argv); in main()
474 return cmd_trace(argc, argv); in main()
483 argc--; in main()
484 handle_options(&argv, &argc, NULL); in main()
487 if (argc > 0) { in main()
520 run_argv(&argc, &argv); in main()