Home
last modified time | relevance | path

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

/linux-6.6.21/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()
Dhelp.c221 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()
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.6.21/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()
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.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()
/linux-6.6.21/tools/perf/util/
Ddlfilter.c338 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()
/linux-6.6.21/tools/perf/
Dbuiltin-script.c2943 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()