]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Define tracepoint strings only if CONFIG_TRACING is set
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sat, 12 Jul 2014 17:01:49 +0000 (19:01 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 7 Sep 2014 23:18:14 +0000 (16:18 -0700)
commit0a1c35f3589c18a951f3ff08cd878468a214d9c3
treec1a38c47ae43dc8f89e17d32a3c19434470cd78e
parent48e07cb567576a17eed1d67f17a17e84016605af
rcu: Define tracepoint strings only if CONFIG_TRACING is set

Commit 0c773e04212f ("rcu: Have the RCU tracepoints use the tracepoint_string
infrastructure") unconditionally populates the __tracepoint_str input section,
but this section is not assigned an output section if CONFIG_TRACING is not set.
This results in the __tracepoint_str turning up in unexpected places, i.e.,
after _edata.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c