From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752896AbcAGJ4i (ORCPT ); Thu, 7 Jan 2016 04:56:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56804 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752100AbcAGJ4g (ORCPT ); Thu, 7 Jan 2016 04:56:36 -0500 Date: Thu, 7 Jan 2016 10:56:32 +0100 From: Jiri Olsa To: kan.liang@intel.com Cc: peterz@infradead.org, acme@kernel.org, eranian@google.com, ak@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/8] perf tools: add option to record sample physical address Message-ID: <20160107095632.GB6782@krava.brq.redhat.com> References: <1452078277-15520-1-git-send-email-kan.liang@intel.com> <1452078277-15520-2-git-send-email-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1452078277-15520-2-git-send-email-kan.liang@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 06, 2016 at 06:04:31AM -0500, kan.liang@intel.com wrote: SNIP > diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c > index d5636ba..670ff4f 100644 > --- a/tools/perf/util/session.c > +++ b/tools/perf/util/session.c > @@ -1122,6 +1122,9 @@ static void dump_sample(struct perf_evsel *evsel, union perf_event *event, > if (sample_type & PERF_SAMPLE_DATA_SRC) > printf(" . data_src: 0x%"PRIx64"\n", sample->data_src); > > + if (sample_type & PERF_SAMPLE_PHYS_ADDR) > + printf(" .. phys_addr: 0x%"PRIx64"\n", sample->phys_addr); could you also please add PERF_SAMPLE_PHYS_ADDR __p_sample_type so perf evlist displays it? thanks, jirka