Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1236210

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

From Alexander Shishkin <alexander.shishkin@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 15/20] coresight: etm-perf: implementing 'setup_aux()' API
Date 2015-09-30 14:00 +0200
Message-ID <qeodc-468-3@gated-at.bofh.it> (permalink)
References <qa6HT-7Th-15@gated-at.bofh.it> <qa6HU-7Th-39@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Mathieu Poirier <mathieu.poirier@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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [RFC PATCH 15/20] coresight: etm-perf: implementing 'setup_aux()' API Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-09-30 14:00 +0200
  Re: [RFC PATCH 15/20] coresight: etm-perf: implementing 'setup_aux()' API Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-02 00:50 +0200
    Re: [RFC PATCH 15/20] coresight: etm-perf: implementing 'setup_aux()' API Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-10-02 07:00 +0200

csiph-web