ftrace: Fix accounting bug with direct->count in register_ftrace_direct()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 15 Nov 2019 19:13:20 +0000 (14:13 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 15 Nov 2019 19:23:55 +0000 (14:23 -0500)
commit1c7f9b673dc0a15753274c4e7f5ebfd4468fc69f
tree7d512e871891ef7b725cd34920d20c6e6fe0df0a
parent760f8bc7c89c87bff9c01a8746e85dcc6e771ea8
ftrace: Fix accounting bug with direct->count in register_ftrace_direct()

The direct->count wasn't being updated properly, where it only was updated
when the first entry was added, but should be updated every time.

Fixes: 013bf0da04748 ("ftrace: Add ftrace_find_direct_func()")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c