aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/probes
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2016-08-24 13:27:28 -0400
committerWill Deacon <will.deacon@arm.com>2016-08-25 13:00:29 -0400
commitee78fdc71db1ce9a437b9ca17e31063996b71ec1 (patch)
treef775135561acbb2b93f71025114a4b3e7c8ae756 /arch/arm64/kernel/probes
parentcab15ce604e550020bb7115b779013b91bcdbc21 (diff)
arm64: Create sections.h
Each time new section markers are added, kernel/vmlinux.ld.S is updated, and new extern char __start_foo[] definitions are scattered through the tree. Create asm/include/sections.h to collect these definitions (and include the existing asm-generic version). Signed-off-by: James Morse <james.morse@arm.com> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/probes')
-rw-r--r--arch/arm64/kernel/probes/kprobes.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm64/kernel/probes/kprobes.c b/arch/arm64/kernel/probes/kprobes.c
index 0354ffeb2ed5..f97a58111e10 100644
--- a/arch/arm64/kernel/probes/kprobes.c
+++ b/arch/arm64/kernel/probes/kprobes.c
@@ -31,7 +31,7 @@
31#include <asm/insn.h> 31#include <asm/insn.h>
32#include <asm/uaccess.h> 32#include <asm/uaccess.h>
33#include <asm/irq.h> 33#include <asm/irq.h>
34#include <asm-generic/sections.h> 34#include <asm/sections.h>
35 35
36#include "decode-insn.h" 36#include "decode-insn.h"
37 37
@@ -540,9 +540,6 @@ int __kprobes longjmp_break_handler(struct kprobe *p, struct pt_regs *regs)
540 540
541bool arch_within_kprobe_blacklist(unsigned long addr) 541bool arch_within_kprobe_blacklist(unsigned long addr)
542{ 542{
543 extern char __idmap_text_start[], __idmap_text_end[];
544 extern char __hyp_idmap_text_start[], __hyp_idmap_text_end[];
545
546 if ((addr >= (unsigned long)__kprobes_text_start && 543 if ((addr >= (unsigned long)__kprobes_text_start &&
547 addr < (unsigned long)__kprobes_text_end) || 544 addr < (unsigned long)__kprobes_text_end) ||
548 (addr >= (unsigned long)__entry_text_start && 545 (addr >= (unsigned long)__entry_text_start &&