Home
last modified time | relevance | path

Searched refs:exec_path (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/tools/lib/subcmd/
Dexec-cmd.c21 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()
103 void set_argv_exec_path(const char *exec_path) in set_argv_exec_path() argument
105 argv_exec_path = exec_path; in set_argv_exec_path()
109 setenv(subcmd_config.exec_path_env, exec_path, 1); in set_argv_exec_path()
125 return system_path(subcmd_config.exec_path); in get_argv_exec_path()
Dhelp.c197 char *exec_path = get_argv_exec_path(); in load_command_list() local
199 if (exec_path) { in load_command_list()
200 list_commands_in_dir(main_cmds, exec_path, prefix); in load_command_list()
212 if (!exec_path || strcmp(path, exec_path)) in load_command_list()
225 free(exec_path); in load_command_list()
242 char *exec_path = get_argv_exec_path(); in list_commands() local
243 printf("available %s in '%s'\n", title, exec_path); in list_commands()
245 mput_char('-', strlen(title) + strlen(exec_path)); in list_commands()
249 free(exec_path); in list_commands()
Dexec-cmd.h6 const char *exec_path, const char *exec_path_env);
8 extern void set_argv_exec_path(const char *exec_path);
Dsubcmd-config.h8 const char *exec_path; member
Dsubcmd-config.c9 .exec_path = UNDEFINED,
/Linux-v4.19/tools/perf/tests/
Dbuiltin-test.c430 char *exec_path; in shell_tests__dir() local
443 exec_path = get_argv_exec_path(); in shell_tests__dir()
444 scnprintf(path, size, "%s/tests/shell", exec_path); in shell_tests__dir()
445 free(exec_path); in shell_tests__dir()