mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Chunyan Zhang <zhang.chunyan@linaro.org>
Cc: 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 3/4] trace: Introduce trace log output function for STM
Date: Fri, 17 Jul 2015 16:48:16 -0400	[thread overview]
Message-ID: <20150717164816.69015630@gandalf.local.home> (raw)
In-Reply-To: <ad3eec9e2817e3bea49104a820337c0554e7db81.1436262902.git.zhang.chunyan@linaro.org>

On Tue,  7 Jul 2015 18:10:42 +0800
Chunyan Zhang <zhang.chunyan@linaro.org> wrote:

> +static int alloc_stm_trace_buffer(void)
> +{
> +	struct trace_buffer_stm *buffer;
> +
> +	buffer = kzalloc(sizeof(struct trace_buffer_stm), GFP_KERNEL);
> +	if (!buffer)
> +		return -ENOMEM;
> +
> +	buffer->used_len = 0;
> +	buffer->size = ARRAY_SIZE(buffer->buffer);
> +
> +	trace_event_stm_buffer = buffer;
> +
> +	return 0;
> +}
> +
> +static __init int trace_stm_init_buffers(void)
> +{
> +	if (alloc_stm_trace_buffer())
> +		return -ENOMEM;
> +
> +	if (alloc_stm_tmp_seq())

This needs to free trace_event_stm_buffer.

-- Steve

> +		return -ENOMEM;
> +
> +	stm_buffers_allocated = 1;
> +
> +	return 0;
> +}
> +fs_initcall(trace_stm_init_buffers);


  reply	other threads:[~2015-07-17 20:48 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 [this message]
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
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=20150717164816.69015630@gandalf.local.home \
    --to=rostedt@goodmis.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=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®