Home
last modified time | relevance | path

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

/linux/tools/lib/subcmd/
H A 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()
H A Dhelp.c228 char *exec_path = get_argv_exec_path(); in load_command_list() local
230 if (exec_path) { in load_command_list()
231 list_commands_in_dir(main_cmds, exec_path, prefix); in load_command_list()
243 if (!exec_path || strcmp(path, exec_path)) in load_command_list()
256 free(exec_path); in load_command_list()
273 char *exec_path = get_argv_exec_path(); in list_commands() local
274 printf("available %s in '%s'\n", title, exec_path); in list_commands()
276 mput_char('-', strlen(title) + strlen(exec_path)); in list_commands()
280 free(exec_path); in list_commands()
H A Dexec-cmd.h6 const char *exec_path, const char *exec_path_env);
8 extern void set_argv_exec_path(const char *exec_path);
H A Dsubcmd-config.h8 const char *exec_path; member
H A Dsubcmd-config.c9 .exec_path = UNDEFINED,
/linux/tools/perf/util/
H A 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()
/linux/tools/perf/tests/
H A 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()
H A Ddlfilter-test.c226 char *exec_path; in get_dlfilters_path() local
232 exec_path = get_argv_exec_path(); in get_dlfilters_path()
233 if (!exec_path) in get_dlfilters_path()
235 snprintf(path, sizeof(path), "%s/dlfilters/%s", exec_path, name); in get_dlfilters_path()
236 free(exec_path); in get_dlfilters_path()
/linux/tools/perf/ui/browsers/
H A Dscripts.c171 const char *exec_path = get_argv_exec_path(); in find_scripts() local
180 snprintf(scripts_path, sizeof(scripts_path), "%s/scripts", exec_path); in find_scripts()
232 exec_path, in find_scripts()
/linux/tools/perf/
H A Dbuiltin-script.c3275 char *exec_path = get_argv_exec_path(); in find_script() local
3277 if (!exec_path) in find_script()
3280 exec_path, scripting_ops->dirname, script); in find_script()
3281 free(exec_path); in find_script()