mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
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>
This commit is contained in:
parent
f77d09a384
commit
8f76899339
3 changed files with 11 additions and 2 deletions
|
@ -1448,7 +1448,7 @@ static struct trace_event graph_trace_ret_event = {
|
|||
.funcs = &graph_functions
|
||||
};
|
||||
|
||||
static struct tracer graph_trace __read_mostly = {
|
||||
static struct tracer graph_trace __tracer_data = {
|
||||
.name = "function_graph",
|
||||
.open = graph_trace_open,
|
||||
.pipe_open = graph_trace_open,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue