Re: [PATCH v6 2/6] perf record: Get the first sample time and last sample time

2017-11-21 Thread Jin, Yao
On 11/22/2017 12:40 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Nov 06, 2017 at 08:21:07PM +0800, Jin Yao escreveu: In perf record, it's walked on all samples yet. So it's very easy to get "In the default 'perf record' configuration, all samples are processed, to create the HEADER_BUILD_ID t

Re: [PATCH v6 2/6] perf record: Get the first sample time and last sample time

2017-11-21 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 06, 2017 at 08:21:07PM +0800, Jin Yao escreveu: > In perf record, it's walked on all samples yet. So it's very easy to get "In the default 'perf record' configuration, all samples are processed, to create the HEADER_BUILD_ID table. So..." > the first/last samples and save the time to

[PATCH v6 2/6] perf record: Get the first sample time and last sample time

2017-11-05 Thread Jin Yao
In perf record, it's walked on all samples yet. So it's very easy to get the first/last samples and save the time to perf file header via the function write_sample_time(). In later, perf report/script will fetch the time from perf file header. Change log: --- v6: Currently '--buildid-all'