From: Julien Desfossez Date: Fri, 29 Apr 2016 22:53:20 +0000 (-0400) Subject: Add ctf_integer_bitfield_type X-Git-Tag: v2.9.0-rc1~73 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=907b79ee82c14888c76902807bd4a240d1251ad4;p=lttng-modules.git Add ctf_integer_bitfield_type Signed-off-by: Julien Desfossez Acked-by: Mathieu Desnoyers Signed-off-by: Mathieu Desnoyers --- diff --git a/probes/lttng-events-write.h b/probes/lttng-events-write.h index 5db66eb7..87741a17 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)