Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1709460

Re: perf: multiple mmap of fd behavior on x86/ARM

From Mark Rutland <mark.rutland@arm.com>
Newsgroups linux.kernel
Subject Re: perf: multiple mmap of fd behavior on x86/ARM
Date 2017-08-11 13:10 +0200
Message-ID <udfZf-2MM-1@gated-at.bofh.it> (permalink)
References <ud0GS-17N-15@gated-at.bofh.it> <udf3c-2bo-9@gated-at.bofh.it> <udfPA-2tJ-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Aug 11, 2017 at 12:52:52PM +0200, Peter Zijlstra wrote:
> On Fri, Aug 11, 2017 at 11:01:27AM +0100, Mark Rutland wrote:
> > On Thu, Aug 10, 2017 at 02:48:52PM -0400, Vince Weaver wrote:
> > > 
> > > 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?)
> > 
> > IIUC by 'rdpmc' you mean direct userspace counter access?
> > 
> > Patches for that never made it upstream. Last I saw, there were no
> > patches in a suitable state for review.
> > 
> > There are also difficulties (e.g. big.LITTLE systems where the number of
> > counters can differ across CPUs) which have yet to be solved.
> 
> How would that be a problem? The API gives an explicit index to use with
> the 'rdpmc' instruction.

It's a problem because access to unimplemented counters trap. So if a
task gets migrated from a CPU with N counters to one with N-1, accessing
counter N would be problematic.

So we'd need to account for that somehow, in addition to the usual
sequence counter fun to verify the index was valid when the access was
performed.

Thanks,
Mark.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

perf: multiple mmap of fd behavior on x86/ARM Vince Weaver <vincent.weaver@maine.edu> - 2017-08-10 20:50 +0200
  Re: perf: multiple mmap of fd behavior on x86/ARM Mark Rutland <mark.rutland@arm.com> - 2017-08-11 12:10 +0200
    Re: perf: multiple mmap of fd behavior on x86/ARM Peter Zijlstra <peterz@infradead.org> - 2017-08-11 13:00 +0200
      Re: perf: multiple mmap of fd behavior on x86/ARM Mark Rutland <mark.rutland@arm.com> - 2017-08-11 13:10 +0200
        Re: perf: multiple mmap of fd behavior on x86/ARM Peter Zijlstra <peterz@infradead.org> - 2017-08-11 17:00 +0200
    Re: perf: multiple mmap of fd behavior on x86/ARM Vince Weaver <vincent.weaver@maine.edu> - 2017-08-11 17:30 +0200
      Re: perf: multiple mmap of fd behavior on x86/ARM Mark Rutland <mark.rutland@arm.com> - 2017-08-11 18:30 +0200
        Re: perf: multiple mmap of fd behavior on x86/ARM Vince Weaver <vincent.weaver@maine.edu> - 2017-08-11 19:00 +0200
          Re: perf: multiple mmap of fd behavior on x86/ARM Mark Rutland <mark.rutland@arm.com> - 2017-08-11 19:20 +0200
            Re: perf: multiple mmap of fd behavior on x86/ARM Vince Weaver <vincent.weaver@maine.edu> - 2017-08-11 21:10 +0200

csiph-web