Re: [PATCH 3/3] perf tools: Introduce timestamp_in_usec()

2016-10-24 Thread Joonwoo Park
On 10/23/2016 07:02 PM, Namhyung Kim wrote: Joonwoo reported that there's a mismatch between timestamps in script and sched commands. This was because of difference in printing the timestamp. Factor out the code and share it so that they can be in sync. Also I found that sched map has simila

Re: [PATCH 3/3] perf tools: Introduce timestamp_in_usec()

2016-10-24 Thread Jiri Olsa
On Mon, Oct 24, 2016 at 11:02:45AM +0900, Namhyung Kim wrote: SNIP > + > if (nanosecs) > printf("%5lu.%09llu: ", secs, nsecs); > else > - printf("%5lu.%06lu: ", secs, usecs); > + printf("%12s: ", timestamp_i