Home
last modified time | relevance | path

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

/linux-6.1.9/tools/lib/subcmd/
Dhelp.c199 char *exec_path = get_argv_exec_path(); in load_command_list() local
201 if (exec_path) { in load_command_list()
202 list_commands_in_dir(main_cmds, exec_path, prefix); in load_command_list()
214 if (!exec_path || strcmp(path, exec_path)) in load_command_list()
227 free(exec_path); in load_command_list()
244 char *exec_path = get_argv_exec_path(); in list_commands() local
245 printf("available %s in '%s'\n", title, exec_path); in list_commands()
247 mput_char('-', strlen(title) + strlen(exec_path)); in list_commands()
251 free(exec_path); in list_commands()
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()
106 void set_argv_exec_path(const char *exec_path) in set_argv_exec_path() argument
108 argv_exec_path = exec_path; in set_argv_exec_path()
112 setenv(subcmd_config.exec_path_env, exec_path, 1); in set_argv_exec_path()
128 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);
Dsubcmd-config.h8 const char *exec_path; member
Dsubcmd-config.c9 .exec_path = UNDEFINED,
/linux-6.1.9/tools/perf/tests/
Dattr.c186 char *exec_path; in test__attr() local
195 exec_path = get_argv_exec_path(); in test__attr()
196 if (exec_path == NULL) in test__attr()
200 snprintf(path_dir, PATH_MAX, "%s/tests", exec_path); in test__attr()
202 free(exec_path); in test__attr()
Dbuiltin-test-list.c41 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()
Ddlfilter-test.c222 char *exec_path; in get_dlfilters_path() local
228 exec_path = get_argv_exec_path(); in get_dlfilters_path()
229 if (!exec_path) in get_dlfilters_path()
231 snprintf(path, sizeof(path), "%s/dlfilters/dlfilter-test-api-v0.so", exec_path); in get_dlfilters_path()
232 free(exec_path); in get_dlfilters_path()
/linux-6.1.9/tools/perf/util/
Ddlfilter.c295 char *exec_path; in find_dlfilter() local
310 exec_path = get_argv_exec_path(); in find_dlfilter()
311 if (!exec_path) in find_dlfilter()
313 snprintf(path, sizeof(path), "%s/dlfilters/%s", exec_path, file); in find_dlfilter()
314 free(exec_path); in find_dlfilter()
601 char *exec_path; in list_available_dlfilters() local
607 exec_path = get_argv_exec_path(); in list_available_dlfilters()
608 if (!exec_path) in list_available_dlfilters()
610 snprintf(path, sizeof(path), "%s/dlfilters", exec_path); in list_available_dlfilters()
614 free(exec_path); in list_available_dlfilters()
/linux-6.1.9/tools/perf/
Dbuiltin-script.c2906 char *exec_path = get_argv_exec_path(); in find_script() local
2908 if (!exec_path) in find_script()
2911 exec_path, scripting_ops->dirname, script); in find_script()
2912 free(exec_path); in find_script()