Home
last modified time | relevance | path

Searched refs:argv0 (Results 1 – 3 of 3) sorted by relevance

/tools/perf/util/
Dexec_cmd.c25 const char *perf_extract_argv0_path(const char *argv0) in perf_extract_argv0_path() argument
29 if (!argv0 || !*argv0) in perf_extract_argv0_path()
31 slash = argv0 + strlen(argv0); in perf_extract_argv0_path()
33 while (argv0 <= slash && !is_dir_sep(*slash)) in perf_extract_argv0_path()
36 if (slash >= argv0) { in perf_extract_argv0_path()
37 argv0_path = strndup(argv0, slash - argv0); in perf_extract_argv0_path()
41 return argv0; in perf_extract_argv0_path()
/tools/perf/
Dperf.c374 char *argv0 = strdup(argv[0]); in handle_internal_command() local
375 argv[0] = cmd = argv0; in handle_internal_command()
376 argv0[i] = '\0'; in handle_internal_command()
/tools/usb/
Dffs-test.c55 static const char argv0[] = "ffs-test"; variable
79 fprintf(stderr, "%s: %s ", argv0, levels[level]); in _msg()