x86, asmlinkage: Make kprobes code visible and fix assembler code
authorAndi Kleen <ak@linux.intel.com>
Mon, 5 Aug 2013 22:02:41 +0000 (15:02 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 6 Aug 2013 21:19:48 +0000 (14:19 -0700)
commit04bb591ca74fb8ea06d5ab7fadfb7bf5b11fb28e
treed39a3a2bfa54a5f5d272952ba5c586601c5295ec
parentff49103fdba59aa3f845ad2dcac0c26a9e4c5404
x86, asmlinkage: Make kprobes code visible and fix assembler code

- Make all the external assembler template symbols __visible
- Move the templates inline assembler code into a top level
  assembler statement, not inside a function. This avoids it being
  optimized away or cloned.

Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1375740170-7446-8-git-send-email-andi@firstfloor.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/kprobes.h
arch/x86/kernel/kprobes/core.c
arch/x86/kernel/kprobes/opt.c