]> git.baikalelectronics.ru Git - kernel.git/commit
tracepoint: Simplify tracepoint module search
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 9 Apr 2014 00:09:40 +0000 (20:09 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 9 Apr 2014 00:45:34 +0000 (20:45 -0400)
commit2b82dfc6333f12ea248137525f564b3d1fa28d8e
treea4e39481eade88644bae57261605cb393b75e451
parent6f7e7f12b230a5b477e4d897475a16f8f3bc4b59
tracepoint: Simplify tracepoint module search

Instead of copying the num_tracepoints and tracepoints_ptrs from
the module structure to the tp_mod structure, which only uses it to
find the module associated to tracepoints of modules that are coming
and going, simply copy the pointer to the module struct to the tracepoint
tp_module structure.

Also removed un-needed brackets around an if statement.

Link: http://lkml.kernel.org/r/20140408201705.4dad2c4a@gandalf.local.home
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/tracepoint.h
kernel/tracepoint.c