[PATCH 0/3] tracing: fix macro expansion and refactor some of dynamic_array support

From: Filipe Brandenburger
Date: Sat Mar 01 2014 - 00:39:25 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/