Re: [PATCH v2 3/6] perf util: Create function to parse time percent
From: Jiri Olsa
Date: Wed Sep 27 2017 - 08:23:31 EST
On Tue, Sep 26, 2017 at 06:57:59PM +0800, Jin Yao wrote:
SNIP
> +
> + if (p2)
> + p1 = p2 + 1;
> + else
> + break;
> + }
> +
> + free(str);
> + return i;
> +}
> +
> +int perf_time__percent_parse_str(struct perf_time_interval *ptime_buf, int num,
> + const char *ostr, u64 start, u64 end)
> +{
this function is perfect for automated test ;-)
jirka