linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf probe issues
@ 2016-06-14 17:05 Arnaldo Carvalho de Melo
  2016-06-15  2:02 ` Masami Hiramatsu
  0 siblings, 1 reply; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2016-06-14 17:05 UTC (permalink / raw)
  To: Masami Hiramatsu; +Cc: Linux Kernel Mailing List

Hi Masami,

	While investigating a problem in the annotation code reported by
Linus, with "kaslr" on the kernel command line and this in .config:

[root@jouet ~]# egrep 'CONFIG_(RANDOMIZE_BASE|DEBUG_INFO)' ~acme/git/build/v4.7.0-rc3/.config
CONFIG_RANDOMIZE_BASE=y
# CONFIG_DEBUG_INFO is not set
[root@jouet ~]#

[root@jouet ~]# grep -w vfs_write /proc/kallsyms 
ffffffffac2404c0 T vfs_write
[root@jouet ~]# perf probe vfs_write
vfs_write is out of .text, skip it.
  Error: Failed to add events.
[root@jouet ~]# perf probe -v vfs_write
probe-definition(0): vfs_write 
symbol:vfs_write file:(null) line:0 offset:0 return:0 lazy:(null)
0 arguments
Looking at the vmlinux_path (8 entries long)
Using /lib/modules/4.7.0-rc3/build/vmlinux for symbols
Could not open debuginfo. Try to use symbols.
vfs_write is out of .text, skip it.
  Error: Failed to add events. Reason: No such file or directory (Code: -2)
[root@jouet ~]# 

Can you try to test with this config to investigate this problem?

We need to improve the error messages, for instance:

"Could not open debuginfo. Try to use symbols."

I think should be rewritten as: "Trying to use kallsyms", no? I.e. if it
doesn't manage to find a vmlinux file, it will try to use kallsyms as a
fallback, is that what is happening here?

- Arnaldo

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

end of thread, other threads:[~2016-06-15 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-14 17:05 perf probe issues Arnaldo Carvalho de Melo
2016-06-15  2:02 ` Masami Hiramatsu
2016-06-15 17:43   ` Arnaldo Carvalho de Melo
2016-06-15 21:33     ` Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).