projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: update rcu instrumentation for 3.19+ kernels
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
rcu.h
diff --git
a/instrumentation/events/lttng-module/rcu.h
b/instrumentation/events/lttng-module/rcu.h
index 42b2004c638fe3a2f8f19429e858fc98a59c77de..16993aa3f4dd51ac36b95c380768eb223c6267ce 100644
(file)
--- a/
instrumentation/events/lttng-module/rcu.h
+++ b/
instrumentation/events/lttng-module/rcu.h
@@
-41,7
+41,10
@@
LTTNG_TRACEPOINT_EVENT(rcu_utilization,
#ifdef CONFIG_RCU_TRACE
#ifdef CONFIG_RCU_TRACE
-#if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU)
+#if defined(CONFIG_TREE_RCU) \
+ || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) \
+ && defined(CONFIG_PREEMPT_RCU)) \
+ || defined(CONFIG_TREE_PREEMPT_RCU)
/*
* Tracepoint for grace-period events: starting and ending a grace
/*
* Tracepoint for grace-period events: starting and ending a grace
@@
-269,7
+272,12
@@
LTTNG_TRACEPOINT_EVENT(rcu_fqs,
__entry->cpu, __get_str(qsevent))
)
__entry->cpu, __get_str(qsevent))
)
-#endif /* #if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU) */
+#endif /*
+ * #if defined(CONFIG_TREE_RCU)
+ * || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
+ * && defined(CONFIG_PREEMPT_RCU))
+ * || defined(CONFIG_TREE_PREEMPT_RCU)
+ */
/*
* Tracepoint for dyntick-idle entry/exit events. These take a string
/*
* Tracepoint for dyntick-idle entry/exit events. These take a string
This page took
0.023416 seconds
and
4
git commands to generate.