rcu: Add a trace event for synchronize_rcu_normal()
authorUladzislau Rezki (Sony) <urezki@gmail.com>
Fri, 8 Mar 2024 17:34:06 +0000 (18:34 +0100)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Mon, 15 Apr 2024 17:47:51 +0000 (19:47 +0200)
commit2053937a310a3982de9d33af3db2dbd2b32b66e4
tree99d5a3e3ce18d386610070f29d504cb51da8f8bd
parent988f569ae041ccc93a79d98d1b0043dff4d7e9b7
rcu: Add a trace event for synchronize_rcu_normal()

Add an rcu_sr_normal() trace event. It takes three arguments
first one is the name of RCU flavour, second one is a user id
which triggeres synchronize_rcu_normal() and last one is an
event.

There are two traces in the synchronize_rcu_normal(). On entry,
when a new request is registered and on exit point when request
is completed.

Please note, CONFIG_RCU_TRACE=y is required to activate traces.

Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
include/trace/events/rcu.h
kernel/rcu/tree.c