X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=probes%2Flttng-ftrace.c;h=56cfa56ad37b37a49a220bdea2bc37ee86b8b6f6;hb=ccecf3fb2d43968e97e4c57f13ac89d87db6dd8d;hp=bc4bd5baae6f90d7bf22eceb3e7cfa5e57ef07de;hpb=13ab8b0a749053960f81a4924a3ed27775518f94;p=lttng-modules.git diff --git a/probes/lttng-ftrace.c b/probes/lttng-ftrace.c index bc4bd5ba..56cfa56a 100644 --- a/probes/lttng-ftrace.c +++ b/probes/lttng-ftrace.c @@ -43,6 +43,10 @@ static void lttng_ftrace_handler(unsigned long ip, unsigned long parent_ip, void **data) { struct lttng_event *event = *data; + struct lttng_probe_ctx lttng_probe_ctx = { + .event = event, + .interruptible = !irqs_disabled(), + }; struct lttng_channel *chan = event->chan; struct lib_ring_buffer_ctx ctx; struct { @@ -58,7 +62,7 @@ void lttng_ftrace_handler(unsigned long ip, unsigned long parent_ip, void **data if (unlikely(!ACCESS_ONCE(event->enabled))) return; - lib_ring_buffer_ctx_init(&ctx, chan->chan, event, + lib_ring_buffer_ctx_init(&ctx, chan->chan, <tng_probe_ctx, sizeof(payload), lttng_alignof(payload), -1); ret = chan->ops->event_reserve(&ctx, event->id); if (ret < 0)