X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Fringbuffer%2Fconfig.h;h=ccb683371cd9ec52176909f59e8a348dbfb01776;hb=484ec2179e14ae9272a7ad3d1820c837136fd144;hp=a17d22024ddc13f0374e6bb7c18ba6ba0b2eaa27;hpb=2df37e95fa4303ecc0db41334452665491533641;p=lttng-modules.git diff --git a/include/ringbuffer/config.h b/include/ringbuffer/config.h index a17d2202..ccb68337 100644 --- a/include/ringbuffer/config.h +++ b/include/ringbuffer/config.h @@ -101,7 +101,9 @@ struct lib_ring_buffer_client_cb { * * RING_BUFFER_WAKEUP_BY_WRITER directly wakes up readers when a subbuffer is * ready to read. Lower latencies before the reader is woken up. Mainly suitable - * for drivers. + * for drivers. Going through an "irq_work" allows triggering this type of wakeup + * even from NMI context: the wakeup will be slightly delayed until the next + * interrupts are handled. * * RING_BUFFER_WAKEUP_NONE does not perform any wakeup whatsoever. The client * has the responsibility to perform wakeups. @@ -142,9 +144,8 @@ struct lib_ring_buffer_config { enum { RING_BUFFER_WAKEUP_BY_TIMER, /* wake up performed by timer */ RING_BUFFER_WAKEUP_BY_WRITER, /* - * writer wakes up reader, - * not lock-free - * (takes spinlock). + * writer wakes up reader through + * irq_work. */ } wakeup; /*