[lkml]   [2013]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v4 2/3] Support for perf to probe into SDT markers:
On 10/28/13 1:23 PM, Masami Hiramatsu wrote:
> By the way, what happens if multiple binaries has same SDT marker?
> Yeah, perf list shows just one and ignores others. However, if we
> probe one, and run binary which use the other one, user will never
> see the marker.
> So, it still needs a concrete binary path to list or, we should
> support a syntax which specify actual binary, as like as below.
> perf probe 'my_event=%libc:setjmp@/lib64/'
> And perf list may show the marker as in same syntax (for copy&paste).
> # perf list --sdt
> %libc:setjmp@/lib64/
> ...
> Note that we need '%' to separate namespace :(, since user can define
> any marker(provider) name in their binary...

Sure, you need to support that sort of 'fully qualified name' for
duplicate symbols but the default 'libc:setjmp' should still point
to system libc.

This is an example where tracing libc that's relevant to most of
the users should take priority over the 'duplicate marker in
obscure executable' corner case case.


 \ /
  Last update: 2013-10-28 14:21    [W:0.180 / U:1.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site