]> 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>
Wed, 22 Jan 2025 15:10:53 +0000 (15:10 +0000)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 24 Jan 2025 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/probes/lttng-uprobes.c

index 5be83cdb4af4ee5ded566f33c6cb0b63ea3db6f0..a2e29c5d61619b445248efb1d79c383a055b0005 100644 (file)
 #include <wrapper/uprobes.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);
@@ -201,11 +206,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.031336 seconds and 4 git commands to generate.