From: Vince Weaver <vincent.weaver@maine.edu>
To: linux-kernel@vger.kernel.org
Cc: Will Deacon <will.deacon@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>
Subject: perf: multiple mmap of fd behavior on x86/ARM
Date: Thu, 10 Aug 2017 14:48:52 -0400 (EDT) [thread overview]
Message-ID: <alpine.DEB.2.20.1708101448460.30979@macbook-air> (raw)
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
next reply other threads:[~2017-08-10 18:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-10 18:48 Vince Weaver [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.20.1708101448460.30979@macbook-air \
--to=vincent.weaver@maine.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®