perf utils: Move is_directory() to path.h
authorJiri Olsa <jolsa@kernel.org>
Wed, 6 Dec 2017 17:45:35 +0000 (18:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Oct 2018 07:27:29 +0000 (09:27 +0200)
commitdfe96e30b5a5cbd4b6a4806ea7f0f779cc4ee015
tree9f3431c52ebe24eb40015f5fa3dafbed8d2f2357
parent75fc05a20f5fa0b4e1ccfbf14130c3842adcdbe5
perf utils: Move is_directory() to path.h

commit 06c3f2aa9fc68e7f3fe3d83e7569d2a2801d9f99 upstream.

So that it can be used more widely, like in the next patch, when it will
be used to fix a bug in 'perf test' handling of dirent.d_type ==
DT_UNKNOWN.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20171206174535.25380-1-jolsa@kernel.org
[ Split from a larger patch, removed needless includes in path.h ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Ignat Korchagin <ignat@cloudflare.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/perf/builtin-script.c
tools/perf/util/path.c
tools/perf/util/path.h