linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems with -b, and confusing error messages
@ 2016-10-04 15:02 Jonas Wagner
  2016-10-05 11:11 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 7+ messages in thread
From: Jonas Wagner @ 2016-10-04 15:02 UTC (permalink / raw)
  To: linux-perf-users

Hello,

I would like to ask for help, because perf stopped working when I
enable taken branch stack sampling (with the -b option). Here are a
few examples:

$ perf record -b /bin/true
Error:
'precise' request may not be supported. Try removing 'p' modifier.

$ perf record -b -e cycles /bin/true
Error:
No hardware sampling interrupt available.
No APIC? If so then you can boot the kernel with the "lapic" boot
parameter to force-enable it.

$ perf record -e cycles /bin/true
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.014 MB perf.data (8 samples) ]

$ perf record -e cycles:p /bin/true
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.014 MB perf.data (9 samples) ]

$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.4.0-38-generic
root=UUID=a5440a73-d559-4b61-808c-2430cd67ba25 ro quiet lapic

I have a couple questions about this:

1. What's wrong? Branch stack sampling used to work on this machine...
how can I make it work again?
2. Apparently, the problem is not related to the precise modifier, or
the lapic boot parameter. Could we make these error messages more
meaningful?

Note regarding (1): I recently upgraded the kernel on this machine
from 4.4.0-36-generic to 4.4.0-38-generic, on Ubuntu Xenial. Using the
previous kernel, perf worked fine. It's tricky for me to undo the
update though :(

Help would be appreciated. Happy to provide more logs if needed. Thanks!
Jonas

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

end of thread, other threads:[~2016-10-18 16:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-04 15:02 Problems with -b, and confusing error messages Jonas Wagner
2016-10-05 11:11 ` Arnaldo Carvalho de Melo
2016-10-05 12:24   ` Jonas Wagner
2016-10-05 15:38     ` Venkat
2016-10-05 22:03       ` Jonas Wagner
2016-10-06 16:18     ` Arnaldo Carvalho de Melo
2016-10-18 16:04       ` Jonas Wagner

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).