[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150717164816.69015630@gandalf.local.home>
Date: Fri, 17 Jul 2015 16:48:16 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Chunyan Zhang <zhang.chunyan@...aro.org>
Cc: mingo@...hat.com, mathieu.poirier@...aro.org,
serge.broslavsky@...aro.org, broonie@...nel.org,
alexander.shishkin@...ux.intel.com, zhang.lyra@...il.com,
linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH v3 3/4] trace: Introduce trace log output function
for STM
On Tue, 7 Jul 2015 18:10:42 +0800
Chunyan Zhang <zhang.chunyan@...aro.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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists