Re: [PATCH] perf tools: Dont use openat()

From: Ingo Molnar
Date: Thu Sep 24 2009 - 15:20:19 EST



* Eric Dumazet <eric.dumazet@xxxxxxxxx> wrote:

> Ingo Molnar a ?crit :
> > * Eric Dumazet <eric.dumazet@xxxxxxxxx> wrote:
> >
> >> Hi Ingo
> >>
> >> Here is a patch for perf.
> >
> > Applied, thanks Eric!
> >
> >> BTW, use of openat() is a nuisance, since many machines have old glibc
> >> (RHEL 4 Update 5 -> glibc-2.3.4-2.36 on my dev machine for example)
> >
> > We can certainly remove that reliance - wanna send a patch for it?
>
> Here it is
>
> Thanks
>
> [PATCH] perf tools: Dont use openat()
>
> openat() is still a young glibc facility, better to not use it
> in a non performance critical program (perf list)
>
> Signed-off-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>
> ---
> tools/perf/util/parse-events.c | 49 ++++++++++++-------------------
> 1 files changed, 20 insertions(+), 29 deletions(-)

Applied, thanks Eric! I think it's also significant enough to be pushed
to 2.6.32.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/