Re: [PATCH V2 22/30] coresight: etm-perf: new PMU driver for ETM tracers

2015-10-20 Thread Mathieu Poirier
On 20 October 2015 at 03:34, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> +static void *etm_setup_aux(struct perf_event *event, void **pages, >> +int nr_pages, bool overwrite) >> +{ >> + int cpu; >> + cpumask_t *mask; >> + struct etm_event_data *eve

Re: [PATCH V2 22/30] coresight: etm-perf: new PMU driver for ETM tracers

2015-10-20 Thread Mathieu Poirier
On 19 October 2015 at 09:37, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> +static int etm_event_pmu_start(struct perf_event *event) >> +{ >> + int cpu, ret; >> + cpumask_t mask; >> + struct coresight_device *csdev; >> + >> + cpumask_clear(&mask); >> + if (event->cp

Re: [PATCH V2 22/30] coresight: etm-perf: new PMU driver for ETM tracers

2015-10-20 Thread Alexander Shishkin
Mathieu Poirier writes: > +static void *etm_setup_aux(struct perf_event *event, void **pages, > +int nr_pages, bool overwrite) > +{ > + int cpu; > + cpumask_t *mask; > + struct etm_event_data *event_data = NULL; > + struct coresight_device *csdev; > + > +

Re: [PATCH V2 22/30] coresight: etm-perf: new PMU driver for ETM tracers

2015-10-19 Thread Alexander Shishkin
Mathieu Poirier writes: > +static int etm_event_pmu_start(struct perf_event *event) > +{ > + int cpu, ret; > + cpumask_t mask; > + struct coresight_device *csdev; > + > + cpumask_clear(&mask); > + if (event->cpu != -1) > + cpumask_set_cpu(event->cpu, &mask); > +

[PATCH V2 22/30] coresight: etm-perf: new PMU driver for ETM tracers

2015-10-18 Thread Mathieu Poirier
Perf is a well known and used tool for performance monitoring and much more. A such it is an ideal condaditate for integration with coresight based HW tracing. This patch introduces a PMU that represent a coresight tracer to the Perf core. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/co