Lines Matching refs:argc
180 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument
184 while (*argc > 0) { in handle_options()
238 if (*argc < 2) { in handle_options()
246 (*argc)--; in handle_options()
248 if (*argc < 2) { in handle_options()
256 (*argc)--; in handle_options()
281 if (*argc < 2) { in handle_options()
289 (*argc)--; in handle_options()
296 (*argc)--; in handle_options()
305 static int run_builtin(struct cmd_struct *p, int argc, const char **argv) in run_builtin() argument
321 perf_env__set_cmdline(&perf_env, argc, argv); in run_builtin()
322 status = p->fn(argc, argv); in run_builtin()
358 static void handle_internal_command(int argc, const char **argv) in handle_internal_command() argument
364 if (argc > 1 && !strcmp(argv[1], "--help")) { in handle_internal_command()
375 exit(run_builtin(p, argc, argv)); in handle_internal_command()
432 int main(int argc, const char **argv) in main() argument
475 handle_internal_command(argc, argv); in main()
495 return cmd_trace(argc, argv); in main()
500 argc--; in main()
501 handle_options(&argv, &argc, NULL); in main()
504 if (argc > 0) { in main()
535 run_argv(&argc, &argv); in main()