[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1393651938-16418-1-git-send-email-filbranden@google.com>
Date: Fri, 28 Feb 2014 21:32:15 -0800
From: Filipe Brandenburger <filbranden@...gle.com>
To: Steven Rostedt <rostedt@...dmis.org>, Li Zefan <lizefan@...wei.com>
Cc: Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
Filipe Brandenburger <filbranden@...gle.com>
Subject: [PATCH 0/3] tracing: fix macro expansion and refactor some of dynamic_array support
Hi Steven Rostedt, Li Zefan,
This fixes an issue with macro expansion introduced in commit 7d536cb3f
(tracing/events: record the size of dynamic arrays).
I split it in 3 patches, the first fixes a bug, the second improves the code to
evaluate the expression only once and the third refactors an u32 holding two
pieces of data in lower/higher 16 bits into a struct to make the code cleaner.
I split them this way since I expect the first two to be more straightforward
while the third one might generate some discussion. I'd be happy to squash them
into a single one if you'd prefer that.
Cheers,
Filipe
Filipe Brandenburger (3):
tracing: correctly expand len expressions from __dynamic_array macro
tracing: evaluate len expression only once in __dynamic_array macro
tracing: introduce a trace_data_offset struct to store array size
include/linux/ftrace_event.h | 5 +++++
include/trace/ftrace.h | 26 ++++++++++++++------------
kernel/trace/trace_events_filter.c | 13 ++++++++++---
3 files changed, 29 insertions(+), 15 deletions(-)
--
1.9.0.279.gdc9e3eb
--
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