Re: [PATCH V3 14/14] coresight: etm-perf: Add support for trace buffer format

2021-02-17 Thread Anshuman Khandual
On 1/27/21 6:30 PM, Al Grant wrote: >>> +/* CoreSight PMU AUX buffer formats */ >>> +#define PERF_AUX_FLAG_CORESIGHT_FORMAT_CORESIGHT0x /* >> Default for backward compatibility */ >>> +#define PERF_AUX_FLAG_CORESIGHT_FORMAT_RAW0x0100 /* >> Raw format of the source */ >> >> Would CORESIGHT_FO

Re: [PATCH V3 14/14] coresight: etm-perf: Add support for trace buffer format

2021-02-16 Thread Mike Leach
On Wed, 27 Jan 2021 at 08:56, Anshuman Khandual wrote: > > From: Suzuki K Poulose > > CoreSight PMU supports aux-buffer for the ETM tracing. The trace > generated by the ETM (associated with individual CPUs, like Intel PT) > is captured by a separate IP (CoreSight TMC-ETR/ETF until now). > > The

Re: [PATCH V3 14/14] coresight: etm-perf: Add support for trace buffer format

2021-01-27 Thread Suzuki K Poulose
Hi Peter On 1/27/21 12:54 PM, Peter Zijlstra wrote: On Wed, Jan 27, 2021 at 02:25:38PM +0530, Anshuman Khandual wrote: It is possible to have a perf session where some events end up collecting the trace in TMC-ETR while the others in TRBE. Thus we need a way to identify the type of the trace f

RE: [PATCH V3 14/14] coresight: etm-perf: Add support for trace buffer format

2021-01-27 Thread Al Grant
> > +/* CoreSight PMU AUX buffer formats */ > > +#define PERF_AUX_FLAG_CORESIGHT_FORMAT_CORESIGHT 0x /* > Default for backward compatibility */ > > +#define PERF_AUX_FLAG_CORESIGHT_FORMAT_RAW 0x0100 /* > Raw format of the source */ > > Would CORESIGHT_FORMAT_ETR / CORESIGHT_FORMAT_TR

Re: [PATCH V3 14/14] coresight: etm-perf: Add support for trace buffer format

2021-01-27 Thread Peter Zijlstra
On Wed, Jan 27, 2021 at 02:25:38PM +0530, Anshuman Khandual wrote: > It is possible to have a > perf session where some events end up collecting the trace > in TMC-ETR while the others in TRBE. Thus we need a way > to identify the type of the trace for each AUX record. > diff --git a/include/uapi

[PATCH V3 14/14] coresight: etm-perf: Add support for trace buffer format

2021-01-27 Thread Anshuman Khandual
From: Suzuki K Poulose CoreSight PMU supports aux-buffer for the ETM tracing. The trace generated by the ETM (associated with individual CPUs, like Intel PT) is captured by a separate IP (CoreSight TMC-ETR/ETF until now). The TMC-ETR applies formatting of the raw ETM trace data, as it can collec