commit | 114e7b52dee69ce47dd55b8e520e0a48ba7cdae3 | [log] [tgz] |
---|---|---|
author | Filipe Brandenburger <filbranden@google.com> | Fri Feb 28 21:32:17 2014 -0800 |
committer | Steven Rostedt <rostedt@goodmis.org> | Fri Mar 07 10:06:11 2014 -0500 |
tree | d7ac31acb21d9427f0bbf87cd9b17c41b8df370b | |
parent | 5859fa1a146ef5bf79953767f4ceb546fe4214b3 [diff] |
tracing: Evaluate len expression only once in __dynamic_array macro 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>. Link: http://lkml.kernel.org/r/1393651938-16418-3-git-send-email-filbranden@google.com Signed-off-by: Filipe Brandenburger <filbranden@google.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>