From: Philippe Proulx Date: Sun, 11 Aug 2019 16:03:55 +0000 (-0400) Subject: sink.ctf.fs: write boolean field classes and fields X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=ecd27ae41916847cf21d8831820210f28d7fa108;hp=ecd27ae41916847cf21d8831820210f28d7fa108;p=babeltrace.git sink.ctf.fs: write boolean field classes and fields This patch makes a `sink.ctf.fs` component handle boolean field classes and fields. Because CTF 1.8 has no boolean field class type, it makes a best effort and translates it to an 8-bit unsigned integer field class. A boolean field is written as an 8-bit unsigned integer field having the value 0 (false) or 1 (true). When a `src.ctf.fs` component reads a trace generated by `sink.ctf.fs` where the input trace IR contained boolean field classes, the 8-bit unsigned integer field classes will stay integer field classes; the source component has no way to determine if the metadata describes a boolean field class or a genuine integer field class. However, the CTF 1.8 to CTF 1.8 scenario will always be unambiguous because a `src.ctf.fs` component never creates boolean field classes. Signed-off-by: Philippe Proulx Change-Id: I6be5967c2312bdb0e67be7db14ab663912872403 Reviewed-on: https://review.lttng.org/c/babeltrace/+/1895 Tested-by: jenkins Reviewed-by: Francis Deslauriers ---