projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: add missing module version information
[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 8392946a74d3da24147a8ae1bd2356634be682df..1220fb726b36f45eaee1ca81326c800272373f87 100644
(file)
--- a/
instrumentation/events/lttng-module/rcu.h
+++ b/
instrumentation/events/lttng-module/rcu.h
@@
-20,7
+20,11
@@
*/
TRACE_EVENT(rcu_utilization,
*/
TRACE_EVENT(rcu_utilization,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0))
+ TP_PROTO(const char *s),
+#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
TP_PROTO(char *s),
TP_PROTO(char *s),
+#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)) */
TP_ARGS(s),
TP_ARGS(s),
@@
-443,7
+447,11
@@
TRACE_EVENT(rcu_kfree_callback,
*/
TRACE_EVENT(rcu_batch_start,
*/
TRACE_EVENT(rcu_batch_start,
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
+ TP_PROTO(char *rcuname, long qlen_lazy, long qlen, long blimit),
+
+ TP_ARGS(rcuname, qlen_lazy, qlen, blimit),
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
TP_PROTO(char *rcuname, long qlen_lazy, long qlen, int blimit),
TP_ARGS(rcuname, qlen_lazy, qlen, blimit),
TP_PROTO(char *rcuname, long qlen_lazy, long qlen, int blimit),
TP_ARGS(rcuname, qlen_lazy, qlen, blimit),
@@
-459,7
+467,11
@@
TRACE_EVENT(rcu_batch_start,
__field(long, qlen_lazy)
#endif
__field(long, qlen)
__field(long, qlen_lazy)
#endif
__field(long, qlen)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
+ __field(long, blimit)
+#else
__field(int, blimit)
__field(int, blimit)
+#endif
),
TP_fast_assign(
),
TP_fast_assign(
@@
-471,7
+483,11
@@
TRACE_EVENT(rcu_batch_start,
tp_assign(blimit, blimit)
),
tp_assign(blimit, blimit)
),
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0))
+ TP_printk("%s CBs=%ld/%ld bl=%ld",
+ __get_str(rcuname), __entry->qlen_lazy, __entry->qlen,
+ __entry->blimit)
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
TP_printk("%s CBs=%ld/%ld bl=%d",
__get_str(rcuname), __entry->qlen_lazy, __entry->qlen,
__entry->blimit)
TP_printk("%s CBs=%ld/%ld bl=%d",
__get_str(rcuname), __entry->qlen_lazy, __entry->qlen,
__entry->blimit)
This page took
0.024662 seconds
and
4
git commands to generate.