mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
rcu: Put names into TINY_RCU structures under RCU_TRACE
In order to allow event tracing to distinguish between flavors of RCU, we need those names in the relevant RCU data structures. TINY_RCU has avoided them for memory-footprint reasons, so add them only if CONFIG_RCU_TRACE=y. Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
parent
300df91ca9
commit
e99033c5c1
5 changed files with 18 additions and 27 deletions
|
@ -38,20 +38,7 @@
|
|||
#include <linux/prefetch.h>
|
||||
|
||||
#ifdef CONFIG_RCU_TRACE
|
||||
|
||||
#include <trace/events/rcu.h>
|
||||
|
||||
#else /* #ifdef CONFIG_RCU_TRACE */
|
||||
|
||||
/* No by-default tracing in TINY_RCU: Keep TINY_RCU tiny! */
|
||||
static void trace_rcu_invoke_kfree_callback(struct rcu_head *rhp,
|
||||
unsigned long offset)
|
||||
{
|
||||
}
|
||||
static void trace_rcu_invoke_callback(struct rcu_head *head)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* #else #ifdef CONFIG_RCU_TRACE */
|
||||
|
||||
#include "rcu.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue