From: alexander.shishkin@linux.intel.com (Alexander Shishkin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V6 20/26] perf: changing pmu::setup_aux() parameter to include event
Date: Fri, 11 Dec 2015 16:12:39 +0200 [thread overview]
Message-ID: <87egetcbvs.fsf@ashishki-desk.ger.corp.intel.com> (raw)
In-Reply-To: <1449176702-13213-21-git-send-email-mathieu.poirier@linaro.org>
Mathieu Poirier <mathieu.poirier@linaro.org> writes:
> For Coresight ETMv3/4 tracers the event carries information
> about trace modes such as user or kernel space tracing and
> whether tracing is allowed when operating in secure mode.
Ok, so it looks to me that what you're doing in your setup_aux with the
event, you should rather be doing in pmu::event_init(), which takes
event as a parameter and it even makes more sense semantically, because
that bit is really configuring the parameters of tracing and not
capturing, which setup_aux() is more about. And the above paragraph also
sounds very much like it. Since in Coresight there is a very clear
distinction between trace generation (sources) and capturing (sinks) it
should also be possible to structure the code in such a way that the
former are not as closely tied to the latter. Please correct me if I'm
missing something.
Regards,
--
Alex
WARNING: multiple messages have this Message-ID (diff)
From: Alexander Shishkin <alexander.shishkin@linux.intel.com>
To: Mathieu Poirier <mathieu.poirier@linaro.org>, gregkh@linuxfoundation.org
Cc: zhang.chunyan@linaro.org, mike.leach@arm.com, tor@ti.com,
al.grant@arm.com, fainelli@broadcom.com,
linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>
Subject: Re: [PATCH V6 20/26] perf: changing pmu::setup_aux() parameter to include event
Date: Fri, 11 Dec 2015 16:12:39 +0200 [thread overview]
Message-ID: <87egetcbvs.fsf@ashishki-desk.ger.corp.intel.com> (raw)
In-Reply-To: <1449176702-13213-21-git-send-email-mathieu.poirier@linaro.org>
Mathieu Poirier <mathieu.poirier@linaro.org> writes:
> For Coresight ETMv3/4 tracers the event carries information
> about trace modes such as user or kernel space tracing and
> whether tracing is allowed when operating in secure mode.
Ok, so it looks to me that what you're doing in your setup_aux with the
event, you should rather be doing in pmu::event_init(), which takes
event as a parameter and it even makes more sense semantically, because
that bit is really configuring the parameters of tracing and not
capturing, which setup_aux() is more about. And the above paragraph also
sounds very much like it. Since in Coresight there is a very clear
distinction between trace generation (sources) and capturing (sinks) it
should also be possible to structure the code in such a way that the
former are not as closely tied to the latter. Please correct me if I'm
missing something.
Regards,
--
Alex
next prev parent reply other threads:[~2015-12-11 14:12 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-03 21:04 [PATCH V6 00/26] Coresight integration with perf Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 01/26] coresight: etm3x: moving etm_readl/writel to header file Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 02/26] coresight: etm3x: moving sysFS entries to dedicated file Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 03/26] coresight: etm3x: unlocking tracers in default arch init Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 04/26] coresight: etm3x: splitting struct etm_drvdata Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 05/26] coresight: etm3x: implementing 'cpu_id()' API Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 06/26] coresight: associating path with session rather than tracer Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 07/26] coresight: moving PM runtime operations to core framework Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 08/26] coresight: etm3x: adding operation mode for etm_enable() Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 09/26] coresight: add API to get sink from path Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 10/26] coresight: etm3x: set progbit to stop trace collection Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 11/26] coresight: etm3x: changing default trace configuration Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 12/26] coresight: etm3x: consolidating initial config Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 13/26] coresight: etm3x: implementing user/kernel mode tracing Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 14/26] coresight: etm3x: adding perf_get/set_config() API Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 15/26] coresight: etm3x: implementing perf_enable/disable() API Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 16/26] coresight: etb10: moving to local atomic operations Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 17/26] coresight: adding operation mode for sink->enable() Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 18/26] coresight: etb10: implementing AUX space API Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-11 14:00 ` Alexander Shishkin
2015-12-11 14:00 ` Alexander Shishkin
2015-12-11 21:17 ` Mathieu Poirier
2015-12-11 21:17 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 19/26] coresight: updating documentation to reflect integration with perf Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 20/26] perf: changing pmu::setup_aux() parameter to include event Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-11 14:12 ` Alexander Shishkin [this message]
2015-12-11 14:12 ` Alexander Shishkin
2015-12-11 21:58 ` Mathieu Poirier
2015-12-11 21:58 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 21/26] coresight: etm-perf: new PMU driver for ETM tracers Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-11 15:18 ` Alexander Shishkin
2015-12-11 15:18 ` Alexander Shishkin
2015-12-11 21:18 ` Mathieu Poirier
2015-12-11 21:18 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 22/26] coresight: introducing a global trace ID function Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:04 ` [PATCH V6 23/26] perf tools: making function set_max_cpu_num() non static Mathieu Poirier
2015-12-03 21:04 ` Mathieu Poirier
2015-12-03 21:05 ` [PATCH V6 24/26] perf tools: adding perf_evlist to *info_priv_size() Mathieu Poirier
2015-12-03 21:05 ` Mathieu Poirier
2015-12-03 21:05 ` [PATCH V6 25/26] perf tools: making coresight PMU listable Mathieu Poirier
2015-12-03 21:05 ` Mathieu Poirier
2015-12-03 21:05 ` [PATCH V6 26/26] perf tools: adding coresight etm PMU record capabilities Mathieu Poirier
2015-12-03 21:05 ` Mathieu Poirier
2015-12-08 20:24 ` [PATCH V6 00/26] Coresight integration with perf Mathieu Poirier
2015-12-08 20:24 ` Mathieu Poirier
2015-12-08 20:29 ` Mathieu Poirier
2015-12-08 20:29 ` Mathieu Poirier
2015-12-08 20:34 ` Arnaldo Carvalho de Melo
2015-12-08 20:34 ` Arnaldo Carvalho de Melo
2015-12-10 21:27 ` Mathieu Poirier
2015-12-10 21:27 ` Mathieu Poirier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87egetcbvs.fsf@ashishki-desk.ger.corp.intel.com \
--to=alexander.shishkin@linux.intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.