Re: [RFC/PATCH 2/2] perf probe: Allow weak symbols to be probed

2015-03-05 Thread Namhyung Kim
On Fri, Mar 6, 2015 at 4:05 PM, Masami Hiramatsu wrote: > (2015/03/04 22:52), Namhyung Kim wrote: >> It currently prevents adding probes in weak symbols. But there're cases >> that given name is an only weak symbol so that we cannot add probe. >> >> $ perf probe -x /usr/lib/libc.so.6 -a calloc

Re: [RFC/PATCH 2/2] perf probe: Allow weak symbols to be probed

2015-03-05 Thread Masami Hiramatsu
(2015/03/04 22:52), Namhyung Kim wrote: > It currently prevents adding probes in weak symbols. But there're cases > that given name is an only weak symbol so that we cannot add probe. > > $ perf probe -x /usr/lib/libc.so.6 -a calloc > Failed to find symbol calloc in /usr/lib/libc-2.21.so >

Re: [RFC/PATCH 2/2] perf probe: Allow weak symbols to be probed

2015-03-05 Thread Masami Hiramatsu
(2015/03/06 15:15), Namhyung Kim wrote: > Hi Masami, > > On Thu, Mar 05, 2015 at 12:57:21AM +0900, Masami Hiramatsu wrote: >> (2015/03/04 22:52), Namhyung Kim wrote: >>> It currently prevents adding probes in weak symbols. But there're cases >>> that given name is an only weak symbol so that we c

Re: [RFC/PATCH 2/2] perf probe: Allow weak symbols to be probed

2015-03-05 Thread Namhyung Kim
Hi Masami, On Thu, Mar 05, 2015 at 12:57:21AM +0900, Masami Hiramatsu wrote: > (2015/03/04 22:52), Namhyung Kim wrote: > > It currently prevents adding probes in weak symbols. But there're cases > > that given name is an only weak symbol so that we cannot add probe. > > > > $ perf probe -x /us

Re: [RFC/PATCH 2/2] perf probe: Allow weak symbols to be probed

2015-03-04 Thread Masami Hiramatsu
(2015/03/04 22:52), Namhyung Kim wrote: > It currently prevents adding probes in weak symbols. But there're cases > that given name is an only weak symbol so that we cannot add probe. > > $ perf probe -x /usr/lib/libc.so.6 -a calloc > Failed to find symbol calloc in /usr/lib/libc-2.21.so >

[RFC/PATCH 2/2] perf probe: Allow weak symbols to be probed

2015-03-04 Thread Namhyung Kim
It currently prevents adding probes in weak symbols. But there're cases that given name is an only weak symbol so that we cannot add probe. $ perf probe -x /usr/lib/libc.so.6 -a calloc Failed to find symbol calloc in /usr/lib/libc-2.21.so Error: Failed to add events. $ nm /usr/lib/libc