Re: [PATCH 11/14] perf tools: record write data overhead

From: Jiri Olsa
Date: Wed Nov 23 2016 - 18:10:07 EST


On Wed, Nov 23, 2016 at 04:44:49AM -0500, kan.liang@xxxxxxxxx wrote:

SNIP

> diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c
> index d8cde21..ce7a0ea 100644
> --- a/tools/perf/util/machine.c
> +++ b/tools/perf/util/machine.c
> @@ -573,6 +573,11 @@ int machine__process_overhead_event(struct machine *machine __maybe_unused,
> event->overhead.entry.nr,
> event->overhead.entry.time,
> event->overhead.entry.cpu);
> + } else if (event->overhead.type == PERF_USER_WRITE_OVERHEAD) {
> + dump_printf(" User write nr: %llu time: %llu cpu %u\n",
> + event->overhead.entry.nr,
> + event->overhead.entry.time,
> + event->overhead.entry.cpu);

should this be rather in the switch ?

jirka