# barectf 2 changelog
+## barectf v2.3.1
+
+**Fixes**:
+
+ * Share operations between event size computation and event
+ serialization to avoid buffer overflow.
+ * Do not sample clock when closing and opening packets when this is
+ done because the current event does not fit the current packet. This
+ avoids a packet's first event having a timestamp that is less than
+ the packet's beginning timestamp.
+
+## barectf v2.3.0
+
+**Features**:
+
+ * Add tracing activity and tracing section API to check whether or not
+ the traced thread is currently within a barectf tracing function and
+ to enable or disable tracing.
+
+**Tests**:
+
+ * Add tox configuration.
+
+**Fixes**:
+
+ * Fix various testing infrastructure issues.
+ * Fix generated `bitfield.h` big-endian macros.
+
+
+## barectf v2.2.1
+
+**Minor improvements**:
+
+ * barectf now generates ANSI C code.
+ * The generated code can be compiled with a C++ compiler.
+
+**README.md**:
+
+ * barectf claims to generate ANSI C code.
+ * Reword some paragraphs.
+
+
+## barectf v2.2.0
+
+**Features**:
+
+ * Add `$default` boolean property to stream objects, and
+ `$default-stream` string property to the metadata object, to specify
+ a _default stream_: when a default stream exists, tracing function
+ aliases without the default stream name (`barectf_trace_my_event()`,
+ for example) are also generated
+ * Add `options` property to the configuration object, with:
+ * `gen-prefix-def`: true to generate a preprocessor definition
+ (`#define`) in `barectf.h` for the effective prefix
+ * `gen-default-stream-def`: true to generate a preprocessor
+ definition for the default stream name, if any
+ * Create `barectf-tracepoint.h`, a bridging C header file that
+ allows LTTng-UST tracepoints to be used as is with barectf by
+ providing the same `tracepoint()` macro
+
+**Tests**:
+
+ * Test the new `$default` (stream object), `$default-stream` (metadata
+ object), and `options` (configuration object) properties
+
+**README.md**:
+
+ * Add instructions for installing barectf on Arch Linux using the AUR
+ * Add instructions for installing barectf on Ubuntu using a PPA
+
+
+## barectf v2.1.4
+
+**Minor improvements**:
+
+ * Override default metadata `env` entries with user entries instead of
+ the opposite
+ * Statically align and compute the size of event fields when possible
+ for the `_get_event_size_*()` functions when possible
+
+**Bug fixes**:
+
+ * Do not write event's `stream_id` or stream's `id` when the trace
+ packet header type has no `stream_id` field.
+
+**Tests**:
+
+ * Add config test for multiple streams, no `stream_id` field in packet
+ header type
+
+**README.md**:
+
+ * Indicate how to install the command's man page
+
+
+## barectf v2.1.3
+
+**Minor improvements**:
+
+ * Allow no or empty event payload type, as long as the event is not
+ empty itself (contains at least one field in its 4 entities)
+
+**Tests**:
+
+ * Remove no/empty event payload type config tests
+ * Add config test for empty event
+
+**README.md**:
+
+ * Add image on top
+ * Add Community section
+
+
+## barectf v2.1.2
+
+**Bug fixes**:
+
+ * Inherit from appropriate unsigned integer type aliases in
+ `stdint.yaml` for self-aligned, signed integer type aliases
+
+
+## barectf v2.1.1
+
+**Bug fixes**:
+
+ * Force clock offset object properties to their default values when
+ set to `null`
+
+**README.md**:
+
+ * Update Babeltrace's URL
+ * Add `--python=python3` option to virtualenv line in the
+ testing section
+
+
## barectf v2.1.0
**Features**: