Re: failed to add c++ probe

2016-09-23 Thread Masami Hiramatsu
On Thu, 22 Sep 2016 10:54:06 +0200 Peter Zijlstra wrote: > On Wed, Sep 21, 2016 at 01:43:24PM +0900, Masami Hiramatsu wrote: > > On Wed, 21 Sep 2016 12:37:59 +0900 > > Masami Hiramatsu wrote: > > > Hmm, I found there are 3 issues in perf-probe to define event on C++ libs. > > > > 1) No mangle/

Re: failed to add c++ probe

2016-09-22 Thread Peter Zijlstra
On Wed, Sep 21, 2016 at 01:43:24PM +0900, Masami Hiramatsu wrote: > On Wed, 21 Sep 2016 12:37:59 +0900 > Masami Hiramatsu wrote: > Hmm, I found there are 3 issues in perf-probe to define event on C++ libs. > > 1) No mangle/demangle symbol support. This needs a) fix option parser to >accept C

Re: failed to add c++ probe

2016-09-20 Thread Masami Hiramatsu
On Wed, 21 Sep 2016 12:37:59 +0900 Masami Hiramatsu wrote: > On Tue, 20 Sep 2016 01:32:04 +0200 (CEST) > Thomas Gleixner wrote: > > > Masami, > > > > On Tue, 20 Sep 2016, Masami Hiramatsu wrote: > > > Hmm, could you try to find mangled symbol from the library as below? > > > > > > ./perf prob

Re: failed to add c++ probe

2016-09-20 Thread Masami Hiramatsu
On Tue, 20 Sep 2016 01:32:04 +0200 (CEST) Thomas Gleixner wrote: > Masami, > > On Tue, 20 Sep 2016, Masami Hiramatsu wrote: > > Hmm, could you try to find mangled symbol from the library as below? > > > > ./perf probe -x /usr/lib64/libstdc++.so.6 -F \* > > > > And also try to do adding probe w

Re: failed to add c++ probe

2016-09-19 Thread Thomas Gleixner
Masami, On Tue, 20 Sep 2016, Masami Hiramatsu wrote: > Hmm, could you try to find mangled symbol from the library as below? > > ./perf probe -x /usr/lib64/libstdc++.so.6 -F \* > > And also try to do adding probe with -v option again? > > In my case, I could find the mangled symbol, but failed t

Re: failed to add c++ probe

2016-09-19 Thread Masami Hiramatsu
On Mon, 19 Sep 2016 11:54:02 +0200 Jiri Olsa wrote: > hi, > Thomas reported failure to add an uprobe on libstdc++.so.6 like: > > [jolsa@krava perf]$ sudo ./perf probe -x /usr/lib64/libstdc++.so.6 > 'std::ostream::flush' > Semantic error :There is non-digit char in line number. > Error: Comman