tracing: add ring_buffer_event_discard() to ring buffer