Re: [PATCH 4/9] replay: simplify async event processing

2022-05-04 Thread Pavel Dovgalyuk
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

Re: [PATCH 4/9] replay: simplify async event processing

2022-04-26 Thread Richard Henderson
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

[PATCH 4/9] replay: simplify async event processing

2022-04-22 Thread Pavel Dovgalyuk
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 ++