Fix: instruction pointer has different names across arch
[lttng-modules.git] / probes / lttng-uprobes.c
index 47f3599f2baa336dd6c7e543a81aef5070b67efb..0b399291245f9f38d4ce1f52931311ebada3d73a 100644 (file)
@@ -67,7 +67,7 @@ int lttng_uprobes_handler_pre(struct uprobe_consumer *uc, struct pt_regs *regs)
                return 0;
 
        /* Event payload. */
-       payload.ip = regs->ip;
+       payload.ip = (unsigned long)instruction_pointer(regs);
 
        lib_ring_buffer_align_ctx(&ctx, lttng_alignof(payload));
        chan->ops->event_write(&ctx, &payload, sizeof(payload));
This page took 0.022302 seconds and 4 git commands to generate.