[RFC PATCH 15/20] coresight: etm-perf: implementing 'setup_aux()' API

Alexander Shishkin alexander.shishkin at linux.intel.com
Wed Sep 30 04:50:41 PDT 2015


Mathieu Poirier <mathieu.poirier at linaro.org> writes:

> +static void *etm_setup_aux(int cpu, void **pages,
> +			      int nr_pages, bool overwrite)
> +{
> +	struct coresight_device *csdev;
> +
> +	if (cpu == -1)
> +		cpu = smp_processor_id();
> +
> +	csdev = per_cpu(csdev_sink, cpu);
> +	if (!csdev)
> +		return NULL;
> +
> +	return sink_ops(csdev)->setup_aux(csdev, cpu, pages,
> +					  nr_pages, overwrite);

Is it guaranteed that this sink would always have .setup_aux()?

Regards,
--
Alex



More information about the linux-arm-kernel mailing list