X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=probes%2Flttng-ftrace.c;h=d8523198e08db3edabe4276a1eb734ff7b1ce012;hb=e064edf1436e3d6edbab9d6954585b444c8743ed;hp=bc4bd5baae6f90d7bf22eceb3e7cfa5e57ef07de;hpb=13ab8b0a749053960f81a4924a3ed27775518f94;p=lttng-modules.git diff --git a/probes/lttng-ftrace.c b/probes/lttng-ftrace.c index bc4bd5ba..d8523198 100644 --- a/probes/lttng-ftrace.c +++ b/probes/lttng-ftrace.c @@ -33,16 +33,20 @@ #include #include #include -#include "../lttng-events.h" -#include "../wrapper/ringbuffer/frontend_types.h" -#include "../wrapper/ftrace.h" -#include "../wrapper/vmalloc.h" -#include "../lttng-tracer.h" +#include +#include +#include +#include +#include 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)