Re: [PATCH v1 1/5] perf cs-etm: Correct packets swapping in cs_etm__flush()

2018-11-16 Thread Mathieu Poirier
On Sun, Nov 11, 2018 at 12:59:39PM +0800, Leo Yan wrote: > The structure cs_etm_queue uses 'prev_packet' to point to previous > packet, this can be used to combine with new coming packet to generate > samples. > > In function cs_etm__flush() it swaps packets only when the flag >

Re: [PATCH v1 1/5] perf cs-etm: Correct packets swapping in cs_etm__flush()

2018-11-16 Thread Mathieu Poirier
On Sun, Nov 11, 2018 at 12:59:39PM +0800, Leo Yan wrote: > The structure cs_etm_queue uses 'prev_packet' to point to previous > packet, this can be used to combine with new coming packet to generate > samples. > > In function cs_etm__flush() it swaps packets only when the flag >

[PATCH v1 1/5] perf cs-etm: Correct packets swapping in cs_etm__flush()

2018-11-10 Thread Leo Yan
The structure cs_etm_queue uses 'prev_packet' to point to previous packet, this can be used to combine with new coming packet to generate samples. In function cs_etm__flush() it swaps packets only when the flag 'etm->synth_opts.last_branch' is true, this means that it will not swap packets if

[PATCH v1 1/5] perf cs-etm: Correct packets swapping in cs_etm__flush()

2018-11-10 Thread Leo Yan
The structure cs_etm_queue uses 'prev_packet' to point to previous packet, this can be used to combine with new coming packet to generate samples. In function cs_etm__flush() it swaps packets only when the flag 'etm->synth_opts.last_branch' is true, this means that it will not swap packets if