ftrace: Add ftrace_rec_counter() macro to simplify the code
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 7 May 2014 17:46:45 +0000 (13:46 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 30 Jun 2014 14:09:56 +0000 (10:09 -0400)
commit0376bde11be5b87c9fd7d6813ac5fd7e1798b1bf
treee987fcaca66f89e8aae59b780f1310f83b6c9972
parentcf2cb0b27116883c23761e974acba5f3bd719d21
ftrace: Add ftrace_rec_counter() macro to simplify the code

The ftrace dynamic record has a flags element that also has a counter.
Instead of hard coding "rec->flags & ~FTRACE_FL_MASK" all over the
place. Use a macro instead.

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