]> git.baikalelectronics.ru Git - kernel.git/commit
uprobes: Introduce arch_uprobe->ixol
authorOleg Nesterov <oleg@redhat.com>
Mon, 4 Nov 2013 19:27:13 +0000 (20:27 +0100)
committerOleg Nesterov <oleg@redhat.com>
Wed, 6 Nov 2013 19:00:05 +0000 (20:00 +0100)
commit35ed8e864f25dc1e609011b4986d7880cdc56330
tree8e8ac183b41f6b1249e819017c93fc24e332a1dd
parent3685a1bcade096178d972f063732d0afd8efe31a
uprobes: Introduce arch_uprobe->ixol

Currently xol_get_insn_slot() assumes that we should simply copy
arch_uprobe->insn[] which is (ignoring arch_uprobe_analyze_insn)
just the copy of the original insn.

This is not true for arm which needs to create another insn to
execute it out-of-line.

So this patch simply adds the new member, ->ixol into the union.
This doesn't make any difference for x86 and powerpc, but arm
can divorce insn/ixol and initialize the correct xol insn in
arch_uprobe_analyze_insn().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
arch/powerpc/include/asm/uprobes.h
arch/x86/include/asm/uprobes.h
kernel/events/uprobes.c