]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add ref_data to function and fgraph tracer structs
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 18 Jul 2013 18:41:51 +0000 (14:41 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 19 Jul 2013 01:31:31 +0000 (21:31 -0400)
commit6cf5a180a987f64ce8217fa1fc7c6119afaf34c7
tree67321d3042a7561729c55763190ffde07336904a
parent2408fc0b2bb2d8581d97555e295efb20b36c4732
tracing: Add ref_data to function and fgraph tracer structs

The selftest for function and function graph tracers are defined as
__init, as they are only executed at boot up. The "tracer" structs
that are associated to those tracers are not setup as __init as they
are used after boot. To stop mismatch warnings, those structures
need to be annotated with __ref_data.

Currently, the tracer structures are defined to __read_mostly, as they
do not really change. But in the future they should be converted to
consts, but that will take a little work because they have a "next"
pointer that gets updated when they are registered. That will have to
wait till the next major release.

Link: http://lkml.kernel.org/r/1373596735.17876.84.camel@gandalf.local.home
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Reported-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.h
kernel/trace/trace_functions.c
kernel/trace/trace_functions_graph.c