Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / util / path.h
blobd94902c222223423b7401da9f9df130f3aec3da2
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PERF_PATH_H
3 #define _PERF_PATH_H
5 #include <stddef.h>
6 #include <stdbool.h>
8 struct dirent;
10 int path__join(char *bf, size_t size, const char *path1, const char *path2);
11 int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
13 bool is_regular_file(const char *file);
14 bool is_directory(const char *base_path, const struct dirent *dent);
15 bool is_executable_file(const char *base_path, const struct dirent *dent);
17 #endif /* _PERF_PATH_H */