Re: [PATCH v3 04/11] perf tools report: Parse time quantum

2019-03-04 Thread Jiri Olsa
On Thu, Feb 28, 2019 at 10:35:43AM -0800, Andi Kleen wrote: SNIP > +static int > +parse_time_quantum(const struct option *opt, const char *arg, > +int unset __maybe_unused) > +{ > + unsigned long *time_q = opt->value; > + char *end; > + > + *time_q = strtoul(arg, ,

[PATCH v3 04/11] perf tools report: Parse time quantum

2019-02-28 Thread Andi Kleen
From: Andi Kleen Many workloads change over time. perf report currently aggregates the whole time range reported in perf.data. This patch adds an option for a time quantum to quantisize the perf.data over time. This just adds the option, will be used in follow on patches for a time sort key.