linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf: multiple mmap of fd behavior on x86/ARM
@ 2017-08-10 18:48 Vince Weaver
  2017-08-11 10:01 ` Mark Rutland
  0 siblings, 1 reply; 11+ messages in thread
From: Vince Weaver @ 2017-08-10 18:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: Will Deacon, Mark Rutland, Peter Zijlstra, Ingo Molnar


So I was working on my perf_event_tests on ARM/ARM64 (the end goal was to 
get ARM64 rdpmc support working, but apparently those patches never made 
it upstream?)

anyway one test was failing due to an x86/arm difference, which is 
possibly only tangentially perf related.

On x86 you can mmap() a perf_event_open() file descriptor multiple times 
and it works.

On ARM/ARM64 you can only mmap() it once, any other attempts fail.

Is this expected behavior?

You can run the
	tests/record_sample/mmap_multiple
test in the current git of my perf_event_tests testsuite for a testcase.

Vince

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

end of thread, other threads:[~2017-08-14 10:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-10 18:48 perf: multiple mmap of fd behavior on x86/ARM Vince Weaver
2017-08-11 10:01 ` Mark Rutland
2017-08-11 10:52   ` Peter Zijlstra
2017-08-11 11:06     ` Mark Rutland
2017-08-11 14:53       ` Peter Zijlstra
2017-08-14 10:57         ` Will Deacon
2017-08-11 15:25   ` Vince Weaver
2017-08-11 16:23     ` Mark Rutland
2017-08-11 16:51       ` Vince Weaver
2017-08-11 17:09         ` Mark Rutland
2017-08-11 19:01           ` Vince Weaver

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