X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=probes%2Flttng-ftrace.c;h=090843c902d676dd6a15899c5d1b2080063c9a28;hb=79150a4903b5f31695fcd1d9655555ba6dc4bfa4;hp=bc4bd5baae6f90d7bf22eceb3e7cfa5e57ef07de;hpb=4949b0e607fa16a22b141c9253c89f930f70e03f;p=lttng-modules.git diff --git a/probes/lttng-ftrace.c b/probes/lttng-ftrace.c index bc4bd5ba..090843c9 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)