]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
rcu: validate arguments for rcu tracepoints
authorYafang Shao <laoar.shao@gmail.com>
Tue, 26 Mar 2019 12:13:11 +0000 (20:13 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 8 Apr 2019 13:22:51 +0000 (09:22 -0400)
commit4f5fbd78a7b40bab538ae0d316363530da751e42
treec52bf4c503efed8061343460556bb8aa2bfe8c4f
parent2a09b5de235a6b5f76193a2ed46546a2944f98bf
rcu: validate arguments for rcu tracepoints

When CONFIG_RCU_TRACE is not set, all these tracepoints are defined as
do-nothing macro.
We'd better make those inline functions that take proper arguments.

As RCU_TRACE() is defined as do-nothing marco as well when
CONFIG_RCU_TRACE is not set, so we can clean it up.

Link: http://lkml.kernel.org/r/1553602391-11926-4-git-send-email-laoar.shao@gmail.com
Reviewed-by: Paul E. McKenney <paulmck@linux.ibm.com>
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/trace/events/rcu.h
kernel/rcu/rcu.h
kernel/rcu/tree.c