/openbmc/linux/tools/lib/subcmd/ |
H A D | exec-cmd.c | 21 const char *exec_path, const char *exec_path_env) in exec_cmd_init() argument 25 subcmd_config.exec_path = exec_path; in exec_cmd_init() 108 void set_argv_exec_path(const char *exec_path) in set_argv_exec_path() argument 110 argv_exec_path = exec_path; in set_argv_exec_path() 114 setenv(subcmd_config.exec_path_env, exec_path, 1); in set_argv_exec_path() 130 return system_path(subcmd_config.exec_path); in get_argv_exec_path()
|
H A D | help.c | 221 char *exec_path = get_argv_exec_path(); in load_command_list() local 223 if (exec_path) { in load_command_list() 224 list_commands_in_dir(main_cmds, exec_path, prefix); in load_command_list() 236 if (!exec_path || strcmp(path, exec_path)) in load_command_list() 249 free(exec_path); in load_command_list() 266 char *exec_path = get_argv_exec_path(); in list_commands() local 267 printf("available %s in '%s'\n", title, exec_path); in list_commands() 269 mput_char('-', strlen(title) + strlen(exec_path)); in list_commands() 273 free(exec_path); in list_commands()
|
H A D | exec-cmd.h | 6 const char *exec_path, const char *exec_path_env); 8 extern void set_argv_exec_path(const char *exec_path);
|
H A D | subcmd-config.h | 8 const char *exec_path; member
|
H A D | subcmd-config.c | 9 .exec_path = UNDEFINED,
|
/openbmc/linux/tools/perf/tests/ |
H A D | attr.c | 186 char *exec_path; in test__attr() local 202 exec_path = get_argv_exec_path(); in test__attr() 203 if (exec_path == NULL) in test__attr() 207 snprintf(path_dir, PATH_MAX, "%s/tests", exec_path); in test__attr() 209 free(exec_path); in test__attr()
|
H A D | builtin-test-list.c | 41 char *exec_path; in shell_tests__dir() local 55 exec_path = get_argv_exec_path(); in shell_tests__dir() 56 scnprintf(path, size, "%s/tests/shell", exec_path); in shell_tests__dir() 57 free(exec_path); in shell_tests__dir()
|
H A D | dlfilter-test.c | 227 char *exec_path; in get_dlfilters_path() local 233 exec_path = get_argv_exec_path(); in get_dlfilters_path() 234 if (!exec_path) in get_dlfilters_path() 236 snprintf(path, sizeof(path), "%s/dlfilters/%s", exec_path, name); in get_dlfilters_path() 237 free(exec_path); in get_dlfilters_path()
|
/openbmc/linux/tools/perf/util/ |
H A D | dlfilter.c | 338 char *exec_path; in find_dlfilter() local 353 exec_path = get_argv_exec_path(); in find_dlfilter() 354 if (!exec_path) in find_dlfilter() 356 snprintf(path, sizeof(path), "%s/dlfilters/%s", exec_path, file); in find_dlfilter() 357 free(exec_path); in find_dlfilter() 644 char *exec_path; in list_available_dlfilters() local 650 exec_path = get_argv_exec_path(); in list_available_dlfilters() 651 if (!exec_path) in list_available_dlfilters() 653 snprintf(path, sizeof(path), "%s/dlfilters", exec_path); in list_available_dlfilters() 657 free(exec_path); in list_available_dlfilters()
|
/openbmc/qemu/linux-user/ |
H A D | main.c | 70 char *exec_path; variable 679 exec_path = argv[optind]; in parse_args() 771 execfd = open(exec_path, O_RDONLY); in main() 773 printf("Error while loading %s: %s\n", exec_path, strerror(errno)); in main() 779 if (realpath(exec_path, real_exec_path)) { in main() 780 exec_path = real_exec_path; in main() 969 ret = loader_exec(execfd, exec_path, target_argv, target_environ, regs, in main() 972 printf("Error while loading %s: %s\n", exec_path, strerror(-ret)); in main()
|
H A D | user-internals.h | 26 extern char *exec_path;
|
H A D | syscall.c | 8305 fprintf(logfile, "Failing executable: %s\n", exec_path); in excp_dump_file() 8427 return safe_openat(dirfd, exec_path, flags, mode); in maybe_do_fake_open() 8429 return openat(dirfd, exec_path, flags, mode); in maybe_do_fake_open() 8553 ret = MIN(strlen(exec_path), bufsiz); in do_guest_readlink() 8555 memcpy(buf, exec_path, ret); in do_guest_readlink() 8646 exe = exec_path; in do_execv() 10559 ret = MIN(strlen(exec_path), arg4); in _syscall2() 10561 memcpy(p2, exec_path, ret); in _syscall2()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | check | 159 exec_path = Path(exec_pathstr).resolve() variable 160 cmd[0] = str(exec_path) 162 os.chdir(exec_path.parent)
|
/openbmc/linux/tools/perf/ |
H A D | builtin-script.c | 2943 char *exec_path = get_argv_exec_path(); in find_script() local 2945 if (!exec_path) in find_script() 2948 exec_path, scripting_ops->dirname, script); in find_script() 2949 free(exec_path); in find_script()
|