mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG] perf: sampling with precise=2 broken in 3.18
@ 2014-12-16  4:51 Stephane Eranian
  2014-12-16 10:46 ` Peter Zijlstra
  0 siblings, 1 reply; 4+ messages in thread
From: Stephane Eranian @ 2014-12-16  4:51 UTC (permalink / raw)
  To: LKML
  Cc: Peter Zijlstra, mingo, ak, Jiri Olsa, Liang, Kan,
	Arnaldo Carvalho de Melo, dave.hansen

Hi,

I was running some perf mem test for an upcoming patch when
I realize that precise=2 was broken on 3.18. It seems it never
(or extremely rarely) correct the off-by-one error, when until 3.18-rc4
it was 100% on the same program. So something was introduced
that broke the asm walker in perf_event_intel_ds.c.

Looking at the log of that file, I can see one change that could have
some impact:

Author: Dave Hansen <dave.hansen@linux.intel.com>
6ba48ff x86: Remove arbitrary instruction size limit in instruction decoder

if I use a kernel without this fix (prior to that commit), then correction
works. Any kernel after fails. I have not investigated why but may you
have an idea.

To reproduce try using perf mem -t load rec my_load_test, then use
perf report to navigate to the assembly view, the samples should be
on load instructions, not on the instructions following them. If you use
perf mem -t load rec -vv you can verify that precise=2. So something
is not working anymore in the instruction decoder that the fixup routine
bails out.

Any clue?

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

end of thread, other threads:[~2015-01-09 12:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-16  4:51 [BUG] perf: sampling with precise=2 broken in 3.18 Stephane Eranian
2014-12-16 10:46 ` Peter Zijlstra
2014-12-16 16:26   ` Stephane Eranian
2015-01-09 12:31   ` [tip:perf/urgent] x86: Fix off-by-one in instruction decoder tip-bot for Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome