All of lore.kernel.org
 help / color / mirror / Atom feed
* Perf tool regression from 07d369857808
@ 2020-02-27 12:23 Alexandre Ghiti
  2020-02-27 15:25 ` Masami Hiramatsu
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Ghiti @ 2020-02-27 12:23 UTC (permalink / raw)
  To: Masami Hiramatsu
  Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Alexander Shishkin, Jiri Olsa, Namhyung Kim, Sasha Levin,
	Greg Kroah-Hartman, linux-kernel

Hi Masami,

The commit 07d369857808 ("perf probe: Fix wrong address verification) 
found its way in kernel 4.19.98 (and debian 10) and I observed some 
regressions when I try to add probes in shared libraries.
The symptoms are:

$ perf probe -f --exec=/home/aghiti/lib/libdpuhw.so --add 
'log_rank_path=log_rank_path rank path:string'
   Failed to find symbol at 0x3bf0
     Error: Failed to add events.

Whereas when I revert this patch, on the same shared library:

$ perf probe -f --exec=/home/aghiti/lib/libdpuhw.so --add 
'log_rank_path=log_rank_path rank path:string'
Added new event:
   probe_libdpuhw:log_rank_path_4 (on log_rank_path in 
/home/aghiti/lib/libdpuhw.so.2020.1.0 with rank path:string)

You can now use it in all perf tools, such as:

	perf record -e probe_libdpuhw:log_rank_path_4 -aR sleep 1

Actually, I noted that this patch reverts a previous patch that stated 
that dwfl_module_addrsym could fail on shared libraries 664fee3dc379 
("perf probe: Do not use dwfl_module_addrsym if dwarf_diename finds 
symbol name").

Let me know if I can be of any help,

Thanks,

Alexandre Ghiti

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-19 14:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-27 12:23 Perf tool regression from 07d369857808 Alexandre Ghiti
2020-02-27 15:25 ` Masami Hiramatsu
2020-02-27 15:42   ` [BUGFIX PATCH] perf probe: Do not depend on dwfl_module_addrsym() Masami Hiramatsu
2020-02-27 16:20     ` Alexandre Ghiti
2020-02-27 23:52       ` Masami Hiramatsu
2020-03-09 13:44         ` Arnaldo Carvalho de Melo
2020-03-19 14:04     ` [tip: perf/urgent] " tip-bot2 for Masami Hiramatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.