ARM: probes: move all probe code to dedicate directory
authorWang Nan <wangnan0@huawei.com>
Fri, 9 Jan 2015 02:19:49 +0000 (10:19 +0800)
committerJon Medhurst <tixy@linaro.org>
Fri, 9 Jan 2015 09:36:50 +0000 (09:36 +0000)
commitfca08f326ae0423f03b097ff54de432fe77b95d0
tree40d680c04ec5ec613c0b8bb9ec9ff8b5821bc237
parentb1940cd21c0f4abdce101253e860feff547291b0
ARM: probes: move all probe code to dedicate directory

In discussion on LKML (https://lkml.org/lkml/2014/11/28/158), Russell
King suggests to move all probe related code to arch/arm/probes. This
patch does the work. Due to dependency on 'arch/arm/kernel/patch.h', this
patch also moves patch.h to 'arch/arm/include/asm/patch.h', and related
'#include' directives are also midified to '#include <asm/patch.h>'.

Following is an overview of this patch:

 ./arch/arm/kernel/               ./arch/arm/probes/
 |-- Makefile                     |-- Makefile
 |-- probes-arm.c          ==>    |-- decode-arm.c
 |-- probes-arm.h          ==>    |-- decode-arm.h
 |-- probes-thumb.c        ==>    |-- decode-thumb.c
 |-- probes-thumb.h        ==>    |-- decode-thumb.h
 |-- probes.c              ==>    |-- decode.c
 |-- probes.h              ==>    |-- decode.h
 |                                |-- kprobes
 |                                |   |-- Makefile
 |-- kprobes-arm.c         ==>    |   |-- actions-arm.c
 |-- kprobes-common.c      ==>    |   |-- actions-common.c
 |-- kprobes-thumb.c       ==>    |   |-- actions-thumb.c
 |-- kprobes.c             ==>    |   |-- core.c
 |-- kprobes.h             ==>    |   |-- core.h
 |-- kprobes-test-arm.c    ==>    |   |-- test-arm.c
 |-- kprobes-test.c        ==>    |   |-- test-core.c
 |-- kprobes-test.h        ==>    |   |-- test-core.h
 |-- kprobes-test-thumb.c  ==>    |   `-- test-thumb.c
 |                                `-- uprobes
 |                                    |-- Makefile
 |-- uprobes-arm.c         ==>        |-- actions-arm.c
 |-- uprobes.c             ==>        |-- core.c
 |-- uprobes.h             ==>        `-- core.h
 |
 `-- patch.h               ==>    arch/arm/include/asm/patch.h

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
46 files changed:
arch/arm/Makefile
arch/arm/include/asm/patch.h [new file with mode: 0644]
arch/arm/kernel/Makefile
arch/arm/kernel/jump_label.c
arch/arm/kernel/kgdb.c
arch/arm/kernel/kprobes-arm.c [deleted file]
arch/arm/kernel/kprobes-common.c [deleted file]
arch/arm/kernel/kprobes-test-arm.c [deleted file]
arch/arm/kernel/kprobes-test-thumb.c [deleted file]
arch/arm/kernel/kprobes-test.c [deleted file]
arch/arm/kernel/kprobes-test.h [deleted file]
arch/arm/kernel/kprobes-thumb.c [deleted file]
arch/arm/kernel/kprobes.c [deleted file]
arch/arm/kernel/kprobes.h [deleted file]
arch/arm/kernel/patch.c
arch/arm/kernel/patch.h [deleted file]
arch/arm/kernel/probes-arm.c [deleted file]
arch/arm/kernel/probes-arm.h [deleted file]
arch/arm/kernel/probes-thumb.c [deleted file]
arch/arm/kernel/probes-thumb.h [deleted file]
arch/arm/kernel/probes.c [deleted file]
arch/arm/kernel/probes.h [deleted file]
arch/arm/kernel/uprobes-arm.c [deleted file]
arch/arm/kernel/uprobes.c [deleted file]
arch/arm/kernel/uprobes.h [deleted file]
arch/arm/probes/Makefile [new file with mode: 0644]
arch/arm/probes/decode-arm.c [new file with mode: 0644]
arch/arm/probes/decode-arm.h [new file with mode: 0644]
arch/arm/probes/decode-thumb.c [new file with mode: 0644]
arch/arm/probes/decode-thumb.h [new file with mode: 0644]
arch/arm/probes/decode.c [new file with mode: 0644]
arch/arm/probes/decode.h [new file with mode: 0644]
arch/arm/probes/kprobes/Makefile [new file with mode: 0644]
arch/arm/probes/kprobes/actions-arm.c [new file with mode: 0644]
arch/arm/probes/kprobes/actions-common.c [new file with mode: 0644]
arch/arm/probes/kprobes/actions-thumb.c [new file with mode: 0644]
arch/arm/probes/kprobes/core.c [new file with mode: 0644]
arch/arm/probes/kprobes/core.h [new file with mode: 0644]
arch/arm/probes/kprobes/test-arm.c [new file with mode: 0644]
arch/arm/probes/kprobes/test-core.c [new file with mode: 0644]
arch/arm/probes/kprobes/test-core.h [new file with mode: 0644]
arch/arm/probes/kprobes/test-thumb.c [new file with mode: 0644]
arch/arm/probes/uprobes/Makefile [new file with mode: 0644]
arch/arm/probes/uprobes/actions-arm.c [new file with mode: 0644]
arch/arm/probes/uprobes/core.c [new file with mode: 0644]
arch/arm/probes/uprobes/core.h [new file with mode: 0644]