diff options
| author | Steven Rostedt (Red Hat) <[email protected]> | 2013-07-18 14:41:51 -0400 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2013-07-18 21:31:31 -0400 |
| commit | 8f768993394a8c0d3801033c11fd86ce8c88dcac (patch) | |
| tree | 67321d3042a7561729c55763190ffde07336904a /kernel/trace/trace_functions_graph.c | |
| parent | f77d09a384676bde6445413949d9d2c508ff3e62 (diff) | |
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/[email protected]
Reported-by: kbuild test robot <[email protected]>
Reported-by: Chen Gang <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
| -rw-r--r-- | kernel/trace/trace_functions_graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index d56ae9bae00b..b5c09242683d 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c @@ -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, |