ARM: Make arch_specific_insn a define for new arch_probes_insn structure
authorDavid A. Long <dave.long@linaro.org>
Thu, 6 Mar 2014 02:41:29 +0000 (21:41 -0500)
committerDavid A. Long <dave.long@linaro.org>
Tue, 18 Mar 2014 20:39:40 +0000 (16:39 -0400)
commitb4cd605ca92d9a8a2f71355cb45dd943ebcb0c97
tree01f6832e2d9f98344b5913efdb257447f4241742
parent602cd2609eee92d338a83e400774e97c60535ba2
ARM: Make arch_specific_insn a define for new arch_probes_insn structure

Because the common underlying code for ARM kprobes and uprobes needs
to share a common architecrure-specific context structure, and because
the generic kprobes include file insists on defining this to a dummy
structure when kprobes is not configured, a new common structure is
required which can exist when uprobes is configured without kprobes.
In this case kprobes will define a dummy structure, but without the
define aliasing the two structure tags it will not affect uprobes and
the shared probes code.

Signed-off-by: David A. Long <dave.long@linaro.org>
Acked-by: Jon Medhurst <tixy@linaro.org>
12 files changed:
arch/arm/include/asm/kprobes.h
arch/arm/include/asm/probes.h
arch/arm/kernel/kprobes-arm.c
arch/arm/kernel/kprobes-common.c
arch/arm/kernel/kprobes-thumb.c
arch/arm/kernel/kprobes.h
arch/arm/kernel/probes-arm.c
arch/arm/kernel/probes-arm.h
arch/arm/kernel/probes-thumb.c
arch/arm/kernel/probes-thumb.h
arch/arm/kernel/probes.c
arch/arm/kernel/probes.h