perf tools: Do a few more directory handling optimizations
authorUlrich Drepper <drepper@redhat.com>
Sat, 19 Dec 2009 21:40:28 +0000 (16:40 -0500)
committerIngo Molnar <mingo@elte.hu>
Mon, 28 Dec 2009 09:18:37 +0000 (10:18 +0100)
commit659d8cfbb225f1fa5a4f8671a847ef3ab5a89660
tree5eb4d89c29110f8d82edbb86b6bf3a6aee431e4a
parentfd2a50a0240f5f5b59070474eabd83a85720a406
perf tools: Do a few more directory handling optimizations

A few more optimizations for perf when dealing with directories.

Some of them significantly cut down the work which has to be
done. d_type should always be set; otherwise fix the kernel
code. And there are functions available to parse fstab-like
files, so use them.

Signed-off-by: Ulrich Drepper <drepper@redhat.com>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: a.p.zijlstra@chello.nl
Cc: acme@redhat.com
Cc: eranian@google.com
Cc: fweisbec@gmail.com
Cc: lizf@cn.fujitsu.com
Cc: paulus@samba.org
Cc: xiaoguangrong@cn.fujitsu.com
LKML-Reference: <200912192140.nBJLeSfA028905@hs20-bc2-1.build.redhat.com>
[ v2: two small stylistic fixlets ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-kmem.c
tools/perf/util/trace-event-info.c