All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Chunyan Zhang <zhang.chunyan@linaro.org>
Cc: rostedt@goodmis.org, mingo@redhat.com,
	mathieu.poirier@linaro.org, serge.broslavsky@linaro.org,
	broonie@kernel.org, alexander.shishkin@linux.intel.com,
	zhang.lyra@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v3 4/4] trace: Trace log handler for logging into STM blocks
Date: Wed, 8 Jul 2015 14:31:48 +0200	[thread overview]
Message-ID: <20150708123148.GF12596@twins.programming.kicks-ass.net> (raw)
In-Reply-To: <a1bde0b882e36eb81579e9fb6d2561bdfaee4c06.1436262902.git.zhang.chunyan@linaro.org>

On Tue, Jul 07, 2015 at 06:10:43PM +0800, Chunyan Zhang wrote:
> Add the function 'trace_event_stm_output_##call' for printing events
> trace log into STM blocks.
> 
> This patch also adds a function call at where the events have been
> committed to ring buffer to export the trace event information to
> STM blocks.

So then you have two copies of the data, why that? Would a scheme were
data either goes to the STM or the regular buffer not make much more
sense?

> +++ b/include/trace/perf.h
> @@ -175,6 +175,7 @@ trace_event_raw_event_##call(void *__data, proto)			\
>  	{ assign; }							\
>  									\
>  	trace_event_buffer_commit(&fbuffer);				\
> +	trace_event_stm_log(&fbuffer);					\

This makes every trace event slower.

>  }
>  /*
>   * The ftrace_test_probe is compiled out, it is only here as a build time check

  reply	other threads:[~2015-07-08 12:32 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07 10:10 [RFC PATCH v3 0/4] Integration of trace events with System Trace IP blocks Chunyan Zhang
2015-07-07 10:10 ` [RFC PATCH v3 1/4] STM trace event: Adding generic buffer interface driver Chunyan Zhang
2015-07-08 10:23   ` Alexander Shishkin
2015-07-08 14:15     ` Mathieu Poirier
2015-07-08 12:10   ` Peter Zijlstra
2015-07-08 13:09     ` Alexander Shishkin
2015-07-07 10:10 ` [RFC PATCH v3 2/4] trace: Add an entry for printing trace log to STM Chunyan Zhang
2015-07-07 15:58   ` Steven Rostedt
2015-07-08  8:06     ` Chunyan Zhang
2015-07-07 10:10 ` [RFC PATCH v3 3/4] trace: Introduce trace log output function for STM Chunyan Zhang
2015-07-17 20:48   ` Steven Rostedt
2015-07-07 10:10 ` [RFC PATCH v3 4/4] trace: Trace log handler for logging into STM blocks Chunyan Zhang
2015-07-08 12:31   ` Peter Zijlstra [this message]
2015-07-08 13:06     ` Chunyan Zhang
2015-07-08 13:22       ` Ingo Molnar
2015-07-08 13:19     ` Steven Rostedt
2015-07-10  9:01       ` Chunyan Zhang
2015-07-17  5:59       ` Chunyan Zhang
2015-07-17 21:07   ` Steven Rostedt
2015-07-07 11:12 ` [RFC PATCH v3 0/4] Integration of trace events with System Trace IP blocks Alexander Shishkin
2015-07-08  7:42   ` Chunyan Zhang
2015-07-08 10:11     ` Alexander Shishkin

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=20150708123148.GF12596@twins.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.poirier@linaro.org \
    --cc=mingo@redhat.com \
    --cc=rostedt@goodmis.org \
    --cc=serge.broslavsky@linaro.org \
    --cc=zhang.chunyan@linaro.org \
    --cc=zhang.lyra@gmail.com \
    /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.