diff options
author | Jiri Olsa <jolsa@kernel.org> | 2017-12-06 18:45:35 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-12-27 12:15:48 -0300 |
commit | 378811ac303df13efbe49f3ad1795b63d334ac5d (patch) | |
tree | 3f7fd4408641d2fc1f7a3ecce1c2326b44c260de /tools/perf/python | |
parent | 06c3f2aa9fc68e7f3fe3d83e7569d2a2801d9f99 (diff) |
perf test: Handle properly readdir DT_UNKNOWN
Some system can return DT_UNKNOWN in readdir's struct dirent::d_type and
we must handle it properly. In this case we can directly check if the
entity we found is directory and skip it.
Reported-by: Michael Petlan <mpetlan@redhat.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.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 ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/python')
0 files changed, 0 insertions, 0 deletions