]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
livepatch: move x86 specific ftrace handler code to arch/x86
authorLi Bin <huawei.libin@huawei.com>
Fri, 19 Dec 2014 06:11:17 +0000 (14:11 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 22 Dec 2014 14:40:49 +0000 (15:40 +0100)
commitb5bfc51707f1b56b0b733980bb4fcc0562bf02d8
tree3b31bf562c78492f3ad304bb053426eb0f9bcbb6
parent13d1cf7e702596e0cd8ec62afa6bd49c431f2d0c
livepatch: move x86 specific ftrace handler code to arch/x86

The execution flow redirection related implemention in the livepatch
ftrace handler is depended on the specific architecture. This patch
introduces klp_arch_set_pc(like kgdb_arch_set_pc) interface to change
the pt_regs.

Signed-off-by: Li Bin <huawei.libin@huawei.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
arch/x86/include/asm/livepatch.h
kernel/livepatch/core.c