diff options
author | Namhyung Kim <[email protected]> | 2015-03-06 16:31:29 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-03-12 12:39:55 -0300 |
commit | e578da3b2009da2a9ae2d25fd0f78c7b76ca5e56 (patch) | |
tree | 2feb577135345a0dfe209c9084a7a44b6006400f /net/unix/sysctl_net_unix.c | |
parent | 680d926a8cb08dd9cf173e2bb93d4a4477771949 (diff) |
perf probe: Allow weak symbols to be probed
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.so.6 | grep calloc
000000000007b1f0 t __calloc
000000000007b1f0 T __libc_calloc
000000000007b1f0 W calloc
This change will result in duplicate probes when strong and weak symbols
co-exist in a binary. But I think it's not a big problem since probes
at the weak symbol will never be hit anyway.
Signed-off-by: Namhyung Kim <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Naohiro Aota <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions