lkml.org 
[lkml]   [2014]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] tracing: fix macro expansion and refactor some of dynamic_array support
Date
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



\
 
 \ /
  Last update: 2014-03-01 07:21    [W:0.054 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site