Fix: interruptible context: reversed logic
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 17 Nov 2015 19:29:08 +0000 (14:29 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 17 Nov 2015 19:29:08 +0000 (14:29 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/lttng-events.h
probes/lttng-ftrace.c
probes/lttng-kprobes.c
probes/lttng-kretprobes.c

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;                    \
index 090843c902d676dd6a15899c5d1b2080063c9a28..56cfa56ad37b37a49a220bdea2bc37ee86b8b6f6 100644 (file)
@@ -45,7 +45,7 @@ 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(),
+               .interruptible = !irqs_disabled(),
        };
        struct lttng_channel *chan = event->chan;
        struct lib_ring_buffer_ctx ctx;
index f4e4f2ea801e88f4b4d05bf4dd1472837a693799..c2547f0a48c0fb5288ef95d1cae9d47071873520 100644 (file)
@@ -36,7 +36,7 @@ int lttng_kprobes_handler_pre(struct kprobe *p, struct pt_regs *regs)
                container_of(p, struct lttng_event, u.kprobe.kp);
        struct lttng_probe_ctx lttng_probe_ctx = {
                .event = event,
-               .interruptible = lttng_regs_irqs_disabled(regs),
+               .interruptible = !lttng_regs_irqs_disabled(regs),
        };
        struct lttng_channel *chan = event->chan;
        struct lib_ring_buffer_ctx ctx;
index eb3f68573dc895554af4484d0a8aad03ddcf284a..73f2656553e1d98df8d8d5e0ce497f21290c3767 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * probes/lttng-kretprobes.c
+* probes/lttng-kretprobes.c
  *
  * LTTng kretprobes integration module.
  *
@@ -53,7 +53,7 @@ int _lttng_kretprobes_handler(struct kretprobe_instance *krpi,
                lttng_krp->event[type];
        struct lttng_probe_ctx lttng_probe_ctx = {
                .event = event,
-               .interruptible = lttng_regs_irqs_disabled(regs),
+               .interruptible = !lttng_regs_irqs_disabled(regs),
        };
        struct lttng_channel *chan = event->chan;
        struct lib_ring_buffer_ctx ctx;
This page took 0.029193 seconds and 4 git commands to generate.