projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: writeback instrumentation for 4.2 kernels
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
writeback.h
diff --git
a/instrumentation/events/lttng-module/writeback.h
b/instrumentation/events/lttng-module/writeback.h
index 88b7aa495e76555b5579d4a4ee44eb84fe20e0ee..b55d15ec81b77e9c5fe4397b84fa9c026a48e58c 100644
(file)
--- a/
instrumentation/events/lttng-module/writeback.h
+++ b/
instrumentation/events/lttng-module/writeback.h
@@
-363,13
+363,27
@@
LTTNG_TRACEPOINT_EVENT_MAP(bdi_dirty_ratelimit,
TP_FIELDS(
ctf_array_text(char, bdi, dev_name(bdi->dev), 32)
TP_FIELDS(
ctf_array_text(char, bdi, dev_name(bdi->dev), 32)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
+ ctf_integer(unsigned long, write_bw, KBps(bdi->wb.write_bandwidth))
+ ctf_integer(unsigned long, avg_write_bw, KBps(bdi->wb.avg_write_bandwidth))
+#else
ctf_integer(unsigned long, write_bw, KBps(bdi->write_bandwidth))
ctf_integer(unsigned long, avg_write_bw, KBps(bdi->avg_write_bandwidth))
ctf_integer(unsigned long, write_bw, KBps(bdi->write_bandwidth))
ctf_integer(unsigned long, avg_write_bw, KBps(bdi->avg_write_bandwidth))
+#endif
ctf_integer(unsigned long, dirty_rate, KBps(dirty_rate))
ctf_integer(unsigned long, dirty_rate, KBps(dirty_rate))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
+ ctf_integer(unsigned long, dirty_ratelimit, KBps(bdi->wb.dirty_ratelimit))
+#else
ctf_integer(unsigned long, dirty_ratelimit, KBps(bdi->dirty_ratelimit))
ctf_integer(unsigned long, dirty_ratelimit, KBps(bdi->dirty_ratelimit))
+#endif
ctf_integer(unsigned long, task_ratelimit, KBps(task_ratelimit))
ctf_integer(unsigned long, task_ratelimit, KBps(task_ratelimit))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
+ ctf_integer(unsigned long, balanced_dirty_ratelimit,
+ KBps(bdi->wb.balanced_dirty_ratelimit))
+#else
ctf_integer(unsigned long, balanced_dirty_ratelimit,
KBps(bdi->balanced_dirty_ratelimit))
ctf_integer(unsigned long, balanced_dirty_ratelimit,
KBps(bdi->balanced_dirty_ratelimit))
+#endif
)
)
)
)
This page took
0.024446 seconds
and
4
git commands to generate.