summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFilipe Brandenburger <filbranden@google.com>2014-03-01 05:32:17 (GMT)
committerSteven Rostedt <rostedt@goodmis.org>2014-03-07 15:06:11 (GMT)
commit114e7b52dee69ce47dd55b8e520e0a48ba7cdae3 (patch)
treed7ac31acb21d9427f0bbf87cd9b17c41b8df370b /arch
parent5859fa1a146ef5bf79953767f4ceb546fe4214b3 (diff)
downloadlinux-114e7b52dee69ce47dd55b8e520e0a48ba7cdae3.tar.xz
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions