[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87d3b2040908040332i87bf211y8fc782d67b3157a3@mail.gmail.com>
Date: Tue, 4 Aug 2009 12:32:26 +0200
From: Frederic Riss <frederic.riss@...il.com>
To: Ingo Molnar <mingo@...e.hu>
Cc: Arnaldo Carvalho de Melo <acme@...hat.com>,
Kyle McMartin <kyle@...artin.ca>,
Jens Axboe <jens.axboe@...cle.com>,
Anton Blanchard <anton@...ba.org>, davem@...emloft.net,
linux-kernel@...r.kernel.org, a.p.zijlstra@...llo.nl,
fweisbec@...il.com, benh@...nel.crashing.org,
penberg@...helsinki.fi, vegard.nossum@...il.com, paulus@...ba.org,
williams@...hat.com
Subject: Re: [PATCH] basic perf support for sparc
2009/8/4 Ingo Molnar <mingo@...e.hu>:
>
> * Arnaldo Carvalho de Melo <acme@...hat.com> wrote:
>
>> +static void load_perf_bfd_demangle(void)
>> +{
>> + void *handle = dlopen("libbfd-2.19.51.0.2-17.fc11.so", RTLD_NOW);
>
> Hm, this does not look like a very generic solution. Is there some
> way to do a library search to figure out the name? I guess a glob
> match on /usr/lib/libbfd*.so?
If all you want is C++ symbols demangling, why not just look for the
c++filt binary on the system? It accepts mangled names on its stdin
and outputs the demangled name on stdout. You can keep it running in
the background, and communicate through pipes. Of course it's not as
effective as a library call, but I guess that it'll be much more
generic and also much more likely to be found on a developer's system
than a libbfd shared library.
Fred.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists