mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

is_executable_file() has been unused since 2022's commit
7391db6459
("perf test: Refactor shell tests allowing subdirs")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Carsten Haitzler <carsten.haitzler@arm.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20241222215831.283248-1-linux@treblig.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
17 lines
503 B
C
17 lines
503 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _PERF_PATH_H
|
|
#define _PERF_PATH_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
|
|
struct dirent;
|
|
|
|
int path__join(char *bf, size_t size, const char *path1, const char *path2);
|
|
int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
|
|
|
|
bool is_regular_file(const char *file);
|
|
bool is_directory(const char *base_path, const struct dirent *dent);
|
|
bool is_directory_at(int dir_fd, const char *path);
|
|
|
|
#endif /* _PERF_PATH_H */
|