Fix: interruptible context: reversed logic
[lttng-modules.git] / probes / lttng-events.h
index 6d8c71134dccbfc9842f9d9259baccb5856b596e..ac56dd1f8de483f42595e8e0758cef95d7825450 100644 (file)
@@ -905,7 +905,7 @@ static void __event_probe__##_name(void *__data, _proto)                  \
        struct lttng_event *__event = __data;                                 \
        struct lttng_probe_ctx __lttng_probe_ctx = {                                  \
                .event = __event,                                             \
-               .interruptible = irqs_disabled(),                             \
+               .interruptible = !irqs_disabled(),                            \
        };                                                                    \
        struct lttng_channel *__chan = __event->chan;                         \
        struct lttng_session *__session = __chan->session;                    \
@@ -971,7 +971,7 @@ static void __event_probe__##_name(void *__data)                          \
        struct lttng_event *__event = __data;                                 \
        struct lttng_probe_ctx __lttng_probe_ctx = {                                  \
                .event = __event,                                             \
-               .interruptible = irqs_disabled(),                             \
+               .interruptible = !irqs_disabled(),                            \
        };                                                                    \
        struct lttng_channel *__chan = __event->chan;                         \
        struct lttng_session *__session = __chan->session;                    \
This page took 0.034601 seconds and 4 git commands to generate.