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


Groups > linux.kernel > #1724415

Re: [PATCH V8] perf: Add PERF_SAMPLE_PHYS_ADDR

From Arnaldo Carvalho de Melo <acme@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH V8] perf: Add PERF_SAMPLE_PHYS_ADDR
Date 2017-08-31 18:50 +0200
Message-ID <ukAPg-81j-27@gated-at.bofh.it> (permalink)
References <ujD2O-45F-15@gated-at.bofh.it> <ujN2a-229-19@gated-at.bofh.it> <ujNbQ-25K-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Em Tue, Aug 29, 2017 at 01:45:53PM +0200, Peter Zijlstra escreveu:
> On Tue, Aug 29, 2017 at 05:05:15PM +0530, Madhavan Srinivasan wrote:
> > 
> > 
> > On Tuesday 29 August 2017 06:22 AM, kan.liang@intel.com wrote:
> > > From: Kan Liang <kan.liang@intel.com>
> > > 
> > > For understanding how the workload maps to memory channels and hardware
> > > behavior, it's very important to collect address maps with physical
> > > addresses. For example, 3D XPoint access can only be found by filtering
> > > the physical address.
> > > 
> > > Add a new sample type for physical address.
> > > 
> > > perf already has a facility to collect data virtual address. This patch
> > > introduces a function to convert the virtual address to physical address.
> > > The function is quite generic and can be extended to any architecture as
> > > long as a virtual address is provided.
> > >   - For kernel direct mapping addresses, virt_to_phys is used to convert
> > >     the virtual addresses to physical address.
> > >   - For user virtual addresses, __get_user_pages_fast is used to walk the
> > >     pages tables for user physical address.
> > >   - This does not work for vmalloc addresses right now. These are not
> > >     resolved, but code to do that could be added.
> > > 
> > > The new sample type requires collecting the virtual address. The
> > > virtual address will not be output unless SAMPLE_ADDR is applied.
> > > 
> > > For security, the physical address can only be exposed to root or
> > > privileged user.
> > 
> > Tested-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>

You mean you tested this together with Kan's v2 perf tools patches? If
that is so I'll add this tested-by to those patches, ok?
 
> Thanks maddy!

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


Thread

[PATCH V8] perf: Add PERF_SAMPLE_PHYS_ADDR kan.liang@intel.com - 2017-08-29 03:00 +0200
  Re: [PATCH V8] perf: Add PERF_SAMPLE_PHYS_ADDR Madhavan Srinivasan <maddy@linux.vnet.ibm.com> - 2017-08-29 13:40 +0200
    Re: [PATCH V8] perf: Add PERF_SAMPLE_PHYS_ADDR Peter Zijlstra <peterz@infradead.org> - 2017-08-29 13:50 +0200
      Re: [PATCH V8] perf: Add PERF_SAMPLE_PHYS_ADDR Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-08-31 18:50 +0200
        RE: [PATCH V8] perf: Add PERF_SAMPLE_PHYS_ADDR "Liang, Kan" <kan.liang@intel.com> - 2017-09-01 15:10 +0200
  [tip:perf/core] perf/core, x86: Add PERF_SAMPLE_PHYS_ADDR tip-bot for Kan Liang <tipbot@zytor.com> - 2017-08-29 16:30 +0200

csiph-web