perf trace: Handle DT_UNKNOWN on filesystems that don't support d_type
authorShawn Bohrer <sbohrer@rgmadvisors.com>
Sun, 21 Nov 2010 16:09:39 +0000 (10:09 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 27 Nov 2010 03:33:04 +0000 (01:33 -0200)
commit008f29d3865828bb27e35d6d3fa889d0853b469f
treeed30036e47eb9fa91cf00b5ef8982f26c5a987eb
parent9d1faba5fe410558099f13cfada2eab03186769d
perf trace: Handle DT_UNKNOWN on filesystems that don't support d_type

Some filesystems like xfs and reiserfs will return DT_UNKNOWN for the
d_type.  Handle this case by calling stat() to determine the type.

Cc: Andreas Schwab <schwab@linux-m68k.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1290355779-3276-1-git-send-email-sbohrer@rgmadvisors.com>
Signed-off-by: Shawn Bohrer <sbohrer@rgmadvisors.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c