Re: [PATCH 2/6] perf tool: Move parse_nsec_time to time-utils.c

2016-11-28 Thread David Ahern
On 11/28/16 6:58 AM, Jiri Olsa wrote: >> diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h >> index 79662d67891e..1d639e38aa82 100644 >> --- a/tools/perf/util/util.h >> +++ b/tools/perf/util/util.h >> @@ -179,8 +179,6 @@ static inline void *zalloc(size_t size) >> #undef tolower >> #und

Re: [PATCH 2/6] perf tool: Move parse_nsec_time to time-utils.c

2016-11-28 Thread Jiri Olsa
On Fri, Nov 25, 2016 at 02:39:55PM -0700, David Ahern wrote: SNIP > - > - time_nsec = strtoul(nsec_buf, &end, 10); > - if (*end != '\0') > - return -1; > - } else > - time_nsec = 0; > - > - *ptime = time_sec * NSEC_PER_SEC + time_nse