ring-buffer: replace sizeof of event header with offsetof