]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Avoid unnecessary work in directory lookups
authorUlrich Drepper <drepper@redhat.com>
Fri, 4 Sep 2009 19:39:51 +0000 (16:39 -0300)
committerIngo Molnar <mingo@elte.hu>
Fri, 4 Sep 2009 19:50:17 +0000 (21:50 +0200)
commit435c2833d4339e1f701abd9849922ac5a1f5bc1a
tree98669b06646894d1dd8f85c1ae932aa6a8fb42de
parent0d6d94970a0297d769feb373095fea5b8f2301b4
perf tools: Avoid unnecessary work in directory lookups

This patch improves some (common) inefficiencies in the
handling of directory lookups:

- not using the d_type information returned by the kernel

- constructing (absolute) paths for file operation even though
  directory-relative operations using the *at functions is
  possible

There are more places to fix but this is a start.

Signed-off-by: Ulrich Drepper <drepper@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <20090904193951.GB6186@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/parse-events.c