Re: [PATCH v10 07/10] perf record: Read from overwritable ring buffer

2016-06-23 Thread Nilay Vaish
On 23 June 2016 at 09:31, pi3orama wrote: > > > 发自我的 iPhone > >> 在 2016年6月23日,下午10:27,Nilay Vaish 写道: >> >>> On 23 June 2016 at 00:27, Wang Nan wrote: >>> @@ -542,6 +568,79 @@ static struct perf_event_header finished_round_event =

Re: [PATCH v10 07/10] perf record: Read from overwritable ring buffer

2016-06-23 Thread Nilay Vaish
On 23 June 2016 at 09:31, pi3orama wrote: > > > 发自我的 iPhone > >> 在 2016年6月23日,下午10:27,Nilay Vaish 写道: >> >>> On 23 June 2016 at 00:27, Wang Nan wrote: >>> @@ -542,6 +568,79 @@ static struct perf_event_header finished_round_event = >>> { >>>.type = PERF_RECORD_FINISHED_ROUND, >>> }; >>>

Re: [PATCH v10 07/10] perf record: Read from overwritable ring buffer

2016-06-23 Thread pi3orama
发自我的 iPhone > 在 2016年6月23日,下午10:27,Nilay Vaish 写道: > >> On 23 June 2016 at 00:27, Wang Nan wrote: >> @@ -542,6 +568,79 @@ static struct perf_event_header finished_round_event = { >>.type = PERF_RECORD_FINISHED_ROUND, >> }; >> >> +static

Re: [PATCH v10 07/10] perf record: Read from overwritable ring buffer

2016-06-23 Thread pi3orama
发自我的 iPhone > 在 2016年6月23日,下午10:27,Nilay Vaish 写道: > >> On 23 June 2016 at 00:27, Wang Nan wrote: >> @@ -542,6 +568,79 @@ static struct perf_event_header finished_round_event = { >>.type = PERF_RECORD_FINISHED_ROUND, >> }; >> >> +static void >>

Re: [PATCH v10 07/10] perf record: Read from overwritable ring buffer

2016-06-23 Thread Nilay Vaish
On 23 June 2016 at 00:27, Wang Nan wrote: > @@ -542,6 +568,79 @@ static struct perf_event_header finished_round_event = { > .type = PERF_RECORD_FINISHED_ROUND, > }; > > +static void > +record__toggle_overwrite_evsels(struct record *rec, > +

Re: [PATCH v10 07/10] perf record: Read from overwritable ring buffer

2016-06-23 Thread Nilay Vaish
On 23 June 2016 at 00:27, Wang Nan wrote: > @@ -542,6 +568,79 @@ static struct perf_event_header finished_round_event = { > .type = PERF_RECORD_FINISHED_ROUND, > }; > > +static void > +record__toggle_overwrite_evsels(struct record *rec, > + enum

[PATCH v10 07/10] perf record: Read from overwritable ring buffer

2016-06-22 Thread Wang Nan
overwrite_evt_state is introduced to reflect the state of overwritable ring buffers. It is a state machine with 3 states: .(forbid)_. | | | V RUNNING --(1)--> DATA_PENDING --(2)-->

[PATCH v10 07/10] perf record: Read from overwritable ring buffer

2016-06-22 Thread Wang Nan
overwrite_evt_state is introduced to reflect the state of overwritable ring buffers. It is a state machine with 3 states: .(forbid)_. | | | V RUNNING --(1)--> DATA_PENDING --(2)-->