Re: [PATCH 2/8] perf tools: add option to record sample physical address

From: Jiri Olsa
Date: Thu Jan 07 2016 - 04:56:41 EST


On Wed, Jan 06, 2016 at 06:04:31AM -0500, kan.liang@xxxxxxxxx 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/