[PATCH 2/3] tracing: evaluate len expression only once in __dynamic_array macro

2014-02-28 Thread Filipe Brandenburger
Use a temporary variable to store the expansion of the len expression. If the evaluation is expensive, this commit will ensure it is evaluated only once inside ftrace_get_offsets_. Signed-off-by: Filipe Brandenburger --- include/trace/ftrace.h | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH 2/3] tracing: evaluate len expression only once in __dynamic_array macro

2014-02-28 Thread Filipe Brandenburger
Use a temporary variable to store the expansion of the len expression. If the evaluation is expensive, this commit will ensure it is evaluated only once inside ftrace_get_offsets_call. Signed-off-by: Filipe Brandenburger filbran...@google.com --- include/trace/ftrace.h | 6 -- 1 file