On 26.04.2022 23:26, Richard Henderson wrote:
On 4/22/22 04:53, Pavel Dovgalyuk wrote:
static Event *replay_read_event(void)
{
Event *event;
+ int event_kind = replay_state.data_kind - EVENT_ASYNC;
Use the enum type.
Ok.
+/* Asynchronous events IDs */
+
+enum ReplayAsyncEventK
On 4/22/22 04:53, Pavel Dovgalyuk wrote:
static Event *replay_read_event(void)
{
Event *event;
+int event_kind = replay_state.data_kind - EVENT_ASYNC;
Use the enum type.
+/* Asynchronous events IDs */
+
+enum ReplayAsyncEventKind {
+REPLAY_ASYNC_EVENT_BH,
+REPLAY_ASYNC_E
This patch joins replay event id and async event id into single byte in the log.
It makes processing a bit faster and log a bit smaller.
Signed-off-by: Pavel Dovgalyuk
---
replay/replay-events.c | 36 ++--
replay/replay-internal.h | 29 ++