Home
last modified time | relevance | path

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

/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()
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()
Dexec-cmd.h6 const char *exec_path, const char *exec_path_env);
8 extern void set_argv_exec_path(const char *exec_path);
Dhelp.c226 char *exec_path = get_argv_exec_path(); in load_command_list() local
228 if (exec_path) { in load_command_list()
229 list_commands_in_dir(main_cmds, exec_path, prefix); in load_command_list()
241 if (!exec_path || strcmp(path, exec_path)) in load_command_list()
254 free(exec_path); in load_command_list()
271 char *exec_path = get_argv_exec_path(); in list_commands() local
272 printf("available %s in '%s'\n", title, exec_path); in list_commands()
274 mput_char('-', strlen(title) + strlen(exec_path)); in list_commands()
278 free(exec_path); in list_commands()
Dsubcmd-config.h8 const char *exec_path; member
Dsubcmd-config.c9 .exec_path = UNDEFINED,
/tools/perf/tests/
Dattr.c186 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()
Dtests-scripts.c33 char path[PATH_MAX], path2[PATH_MAX], *exec_path; in shell_tests__dir_fd() local
72 exec_path = get_argv_exec_path(); in shell_tests__dir_fd()
73 scnprintf(path, sizeof(path), "%s/tests/shell", exec_path); in shell_tests__dir_fd()
74 free(exec_path); in shell_tests__dir_fd()
Ddlfilter-test.c227 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()
/tools/perf/util/
Ddlfilter.c340 char *exec_path; in find_dlfilter() local
355 exec_path = get_argv_exec_path(); in find_dlfilter()
356 if (!exec_path) in find_dlfilter()
358 snprintf(path, sizeof(path), "%s/dlfilters/%s", exec_path, file); in find_dlfilter()
359 free(exec_path); in find_dlfilter()
646 char *exec_path; in list_available_dlfilters() local
652 exec_path = get_argv_exec_path(); in list_available_dlfilters()
653 if (!exec_path) in list_available_dlfilters()
655 snprintf(path, sizeof(path), "%s/dlfilters", exec_path); in list_available_dlfilters()
659 free(exec_path); in list_available_dlfilters()
/tools/perf/
Dbuiltin-script.c3054 char *exec_path = get_argv_exec_path(); in find_script() local
3056 if (!exec_path) in find_script()
3059 exec_path, scripting_ops->dirname, script); in find_script()
3060 free(exec_path); in find_script()