[lttng-dev] [PATCH lttng-modules v6 1/5] Add ctf_integer_bitfield_type
Julien Desfossez
jdesfossez at efficios.com
Fri Apr 29 22:53:20 UTC 2016
Signed-off-by: Julien Desfossez <jdesfossez at efficios.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
---
probes/lttng-events-write.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/probes/lttng-events-write.h b/probes/lttng-events-write.h
index 5db66eb..87741a1 100644
--- a/probes/lttng-events-write.h
+++ b/probes/lttng-events-write.h
@@ -22,6 +22,10 @@
#define ctf_integer(_type, _item, _src) \
_ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 10, 0, 0)
+#undef ctf_integer_bitfield
+#define ctf_integer_bitfield(_type, _item, _src) \
+ _ctf_integer_ext(_type, _item, _src, __LITTLE_ENDIAN, 10, 0, 0)
+
#undef ctf_integer_hex
#define ctf_integer_hex(_type, _item, _src) \
_ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 16, 0, 0)
@@ -145,6 +149,10 @@
#define ctf_integer_type(_type, _src) \
ctf_integer(_type, unused, _src)
+#undef ctf_integer_bitfield_type
+#define ctf_integer_bitfield_type(_type, _src) \
+ ctf_integer_bitfield(_type, unused, _src)
+
#undef ctf_integer_hex_type
#define ctf_integer_hex_type(_type, _src) \
ctf_integer_hex(_type, unused, _src)
--
1.9.1
More information about the lttng-dev
mailing list