]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit096af2e5e6d7961a06039fbc5288ca63901d42dc
treee987fcaca66f89e8aae59b780f1310f83b6c9972
parentd0df81b44ad34d01dff5a478206ec8050724e8f0
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