ftrace: Use macros for numbers in ftrace rec shift bits
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 7 May 2014 16:42:28 +0000 (12:42 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 30 Jun 2014 14:09:55 +0000 (10:09 -0400)
commitcf2cb0b27116883c23761e974acba5f3bd719d21
treeafeb0f40810d1f11bb41f631711321461002f327
parent4fbb48cb110be653adcd97a87506e0ba8c16d585
ftrace: Use macros for numbers in ftrace rec shift bits

As new flags will be added to the ftrace dynamic record, and since
the flags field is also a counter, converting the numbers used to
do the shifting and masking into a set of macros where we only need
to deal with the max bit count of the counter and the number of bits
for the flags will prevent mistakes in the future.

Dealing with only two numbers is much easier than updating all the
macros that deal with shifting and masking.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace.h