John Kacur | 8b40f52 | 2009-09-24 18:02:18 +0200 | [diff] [blame] | 1 | #ifndef __PERF_EXEC_CMD_H |
| 2 | #define __PERF_EXEC_CMD_H |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 3 | |
Josh Poimboeuf | 096d355 | 2015-12-15 09:39:35 -0600 | [diff] [blame^] | 4 | extern void exec_cmd_init(const char *exec_name, const char *prefix, |
| 5 | const char *exec_path, const char *exec_path_env); |
| 6 | |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 7 | extern void perf_set_argv_exec_path(const char *exec_path); |
| 8 | extern const char *perf_extract_argv0_path(const char *path); |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 9 | extern void setup_path(void); |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 10 | extern int execv_perf_cmd(const char **argv); /* NULL terminated */ |
| 11 | extern int execl_perf_cmd(const char *cmd, ...); |
Masami Hiramatsu | c4068f5 | 2015-11-19 15:04:53 +0900 | [diff] [blame] | 12 | /* perf_exec_path and system_path return malloc'd string, caller must free it */ |
| 13 | extern char *perf_exec_path(void); |
| 14 | extern char *system_path(const char *path); |
Ingo Molnar | 0780060 | 2009-04-20 15:00:56 +0200 | [diff] [blame] | 15 | |
John Kacur | 8b40f52 | 2009-09-24 18:02:18 +0200 | [diff] [blame] | 16 | #endif /* __PERF_EXEC_CMD_H */ |