Messages in this thread | | | Date | Thu, 7 Jan 2016 10:56:32 +0100 | From | Jiri Olsa <> | Subject | Re: [PATCH 2/8] perf tools: add option to record sample physical address |
| |
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
| |