]> git.lttng.org Git - lttng-modules.git/commitdiff
Fix: uprobe consumer handler signature changed in Linux 6.13.0-rc1
authorKienan Stewart <kstewart@efficios.com>
Mon, 2 Dec 2024 18:33:23 +0000 (18:33 +0000)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 10 Dec 2024 19:13:40 +0000 (14:13 -0500)
See upstream commit: da09a9e0c3eab164af950be44ee6bdea8527c3e5

    commit da09a9e0c3eab164af950be44ee6bdea8527c3e5
    Author: Jiri Olsa <jolsa@kernel.org>
    Date:   Fri Oct 18 22:22:51 2024 +0200

        uprobe: Add data pointer to consumer handlers

        Adding data pointer to both entry and exit consumer handlers and all
        its users. The functionality itself is coming in following change.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20241018202252.693462-2-jolsa@kernel.org
Change-Id: I41e1a11a71c1c8a9bda461d96e5d1f9cc20e4df8
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lttng-uprobes.c

index 2d97155e492cd32b8ae2b38bd9f10fb7fea74d07..cb9b1663fa5530f4d2ef9731eb678bb9fbe42842 100644 (file)
 #include <ringbuffer/frontend_types.h>
 #include <wrapper/vmalloc.h>
 
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,13,0))
+static
+int lttng_uprobes_event_handler_pre(struct uprobe_consumer *uc, struct pt_regs *regs, __u64 *data)
+#else
 static
 int lttng_uprobes_event_handler_pre(struct uprobe_consumer *uc, struct pt_regs *regs)
+#endif
 {
        struct lttng_uprobe_handler *uprobe_handler =
                container_of(uc, struct lttng_uprobe_handler, up_consumer);
@@ -200,11 +205,19 @@ error:
 }
 
 
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,13,0))
+static
+int lttng_uprobes_add_callsite(struct lttng_uprobe *uprobe,
+       struct lttng_kernel_abi_event_callsite __user *callsite,
+       int (*handler)(struct uprobe_consumer *self, struct pt_regs *regs, __u64 *data),
+       void *priv_data)
+#else
 static
 int lttng_uprobes_add_callsite(struct lttng_uprobe *uprobe,
        struct lttng_kernel_abi_event_callsite __user *callsite,
        int (*handler)(struct uprobe_consumer *self, struct pt_regs *regs),
        void *priv_data)
+#endif
 {
        int ret = 0;
        struct lttng_uprobe_handler *uprobe_handler;
This page took 0.031883 seconds and 4 git commands to generate.