]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - tools/perf/util/util.h
perf tools: Add perf_exe() helper to find perf binary
[linux.git] / tools / perf / util / util.h
index ece040b799f6ead3614d6061d60dbe3c17c2cac4..09c1b0f91f653019adb3260976642a2152c7b219 100644 (file)
@@ -31,6 +31,7 @@ struct strlist;
 
 int mkdir_p(char *path, mode_t mode);
 int rm_rf(const char *path);
+int rm_rf_perf_data(const char *path);
 struct strlist *lsdir(const char *name, bool (*filter)(const char *, struct dirent *));
 bool lsdir_no_dot_filter(const char *name, struct dirent *d);
 int copyfile(const char *from, const char *to);
@@ -76,6 +77,8 @@ extern bool perf_singlethreaded;
 void perf_set_singlethreaded(void);
 void perf_set_multithreaded(void);
 
+char *perf_exe(char *buf, int len);
+
 #ifndef O_CLOEXEC
 #ifdef __sparc__
 #define O_CLOEXEC      0x400000