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

2017-11-05 Thread Jin, Yao
On 11/4/2017 6:24 PM, Jiri Olsa wrote: On Fri, Nov 03, 2017 at 01:29:42PM -0300, Arnaldo Carvalho de Melo wrote: Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no

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

2017-11-05 Thread Jin, Yao
On 11/4/2017 6:24 PM, Jiri Olsa wrote: On Fri, Nov 03, 2017 at 01:29:42PM -0300, Arnaldo Carvalho de Melo wrote: Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no

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

2017-11-04 Thread Jiri Olsa
On Fri, Nov 03, 2017 at 01:29:42PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: > > On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: > > > > SNIP > > > > > > hum, could you still unset the sample if there's no time given? > > > >

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

2017-11-04 Thread Jiri Olsa
On Fri, Nov 03, 2017 at 01:29:42PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: > > On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: > > > > SNIP > > > > > > hum, could you still unset the sample if there's no time given? > > > >

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

2017-11-03 Thread Jin, Yao
On 11/4/2017 12:29 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no time given? and keep the speed in this case.. jirka Hi

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

2017-11-03 Thread Jin, Yao
On 11/4/2017 12:29 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no time given? and keep the speed in this case.. jirka Hi

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

2017-11-03 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: > On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: > > SNIP > > > > hum, could you still unset the sample if there's no time given? > > > and keep the speed in this case.. > > > > > > jirka > > > > > > > Hi Jiri, > > > >

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

2017-11-03 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 24, 2017 at 09:16:59AM +0200, Jiri Olsa escreveu: > On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: > > SNIP > > > > hum, could you still unset the sample if there's no time given? > > > and keep the speed in this case.. > > > > > > jirka > > > > > > > Hi Jiri, > > > >

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

2017-11-03 Thread Jin, Yao
On 10/24/2017 3:16 PM, Jiri Olsa wrote: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no time given? and keep the speed in this case.. jirka Hi Jiri, I check this question again. The '--time' option is for perf report

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

2017-11-03 Thread Jin, Yao
On 10/24/2017 3:16 PM, Jiri Olsa wrote: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no time given? and keep the speed in this case.. jirka Hi Jiri, I check this question again. The '--time' option is for perf report

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

2017-10-24 Thread Jin, Yao
On 10/24/2017 3:16 PM, Jiri Olsa wrote: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no time given? and keep the speed in this case.. jirka Hi Jiri, I check this question again. The '--time' option is for perf report

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

2017-10-24 Thread Jin, Yao
On 10/24/2017 3:16 PM, Jiri Olsa wrote: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no time given? and keep the speed in this case.. jirka Hi Jiri, I check this question again. The '--time' option is for perf report

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

2017-10-24 Thread Jiri Olsa
On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP > > hum, could you still unset the sample if there's no time given? > > and keep the speed in this case.. > > > > jirka > > > > Hi Jiri, > > I check this question again. The '--time' option is for perf report but not > for perf

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

2017-10-24 Thread Jiri Olsa
On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP > > hum, could you still unset the sample if there's no time given? > > and keep the speed in this case.. > > > > jirka > > > > Hi Jiri, > > I check this question again. The '--time' option is for perf report but not > for perf

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

2017-10-23 Thread Jin, Yao
On 10/23/2017 11:04 PM, Jiri Olsa wrote: On Sat, Oct 21, 2017 at 07:27:50AM +0800, Jin Yao wrote: 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

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

2017-10-23 Thread Jin, Yao
On 10/23/2017 11:04 PM, Jiri Olsa wrote: On Sat, Oct 21, 2017 at 07:27:50AM +0800, Jin Yao wrote: 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

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

2017-10-23 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 24, 2017 at 01:38:26AM +0800, Jin, Yao escreveu: > > > On 10/23/2017 11:04 PM, Jiri Olsa wrote: > > On Sat, Oct 21, 2017 at 07:27:50AM +0800, Jin Yao wrote: > > > 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

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

2017-10-23 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 24, 2017 at 01:38:26AM +0800, Jin, Yao escreveu: > > > On 10/23/2017 11:04 PM, Jiri Olsa wrote: > > On Sat, Oct 21, 2017 at 07:27:50AM +0800, Jin Yao wrote: > > > 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

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

2017-10-23 Thread Jin, Yao
On 10/23/2017 11:04 PM, Jiri Olsa wrote: On Sat, Oct 21, 2017 at 07:27:50AM +0800, Jin Yao wrote: 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

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

2017-10-23 Thread Jin, Yao
On 10/23/2017 11:04 PM, Jiri Olsa wrote: On Sat, Oct 21, 2017 at 07:27:50AM +0800, Jin Yao wrote: 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

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

2017-10-23 Thread Jiri Olsa
On Sat, Oct 21, 2017 at 07:27:50AM +0800, Jin Yao wrote: > 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

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

2017-10-23 Thread Jiri Olsa
On Sat, Oct 21, 2017 at 07:27:50AM +0800, Jin Yao wrote: > 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