Contexts for RT debugging
[lttng-modules.git] / probes / lttng-ftrace.c
index bc4bd5baae6f90d7bf22eceb3e7cfa5e57ef07de..090843c902d676dd6a15899c5d1b2080063c9a28 100644 (file)
@@ -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, &lttng_probe_ctx,
                                 sizeof(payload), lttng_alignof(payload), -1);
        ret = chan->ops->event_reserve(&ctx, event->id);
        if (ret < 0)
This page took 0.023198 seconds and 4 git commands to generate.