lib ring buffer: use irq_work for wakeup by writer
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Jan 2020 21:02:27 +0000 (16:02 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 18 Nov 2020 18:00:28 +0000 (13:00 -0500)
commitfbd4d5586960a40e12dae11a70afe3a2ae239ba9
treec89f7d9cd6fa74d4dbd1c923c816fde8cbcc8b7b
parent0bcedee9330c118a554bd2446303712a2702e491
lib ring buffer: use irq_work for wakeup by writer

Using irq_work (like perf does) allows using an interrupt handler
firing soon after the instrumentation execution to issue the wakeups.

This allows the RING_BUFFER_WAKEUP_BY_WRITER ring buffer configuration
to be entirely lock-free, which allows using it in NMI context for
general tracing purposes.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I842ff15736f53d1283cf953804d803f70779652b
include/ringbuffer/config.h
include/ringbuffer/frontend_types.h
src/lib/ringbuffer/ring_buffer_frontend.c
This page took 0.026089 seconds and 4 git commands to generate.