lkml.org 
[lkml]   [2014]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v11 1/7] ARM: probes: move all probe code to dedicate directory
On 2014/12/2 12:59, Masami Hiramatsu wrote:
> (2014/12/01 17:48), Wang Nan wrote:
>> In discussion on LKML (https://lkml.org/lkml/2014/11/28/158), Russell
>> King suggest to move all probe related code to arch/arm/probes. This
>> patch do the work. Due to dependency on 'arch/arm/kernel/patch.h', this
>> patch also move patch.h to 'arch/arm/include/asm/patch.h', and related
>> '#include' directive are also midified to '#include <asm/patch.h>'.
>
> Moving is good to me, but renaming files are also required I think.
>
>> Signed-off-by: Wang Nan <wangnan0@huawei.com>
>> ---
>> arch/arm/Makefile | 1 +
>> arch/arm/{kernel => include/asm}/patch.h | 0
>> arch/arm/kernel/Makefile | 16 ++--------------
>> arch/arm/kernel/jump_label.c | 2 +-
>> arch/arm/kernel/patch.c | 3 +--
>> arch/arm/probes/Makefile | 15 +++++++++++++++
>> arch/arm/{kernel => probes}/kprobes-arm.c | 0
>> arch/arm/{kernel => probes}/kprobes-common.c | 0
>> arch/arm/{kernel => probes}/kprobes-test-arm.c | 0
>> arch/arm/{kernel => probes}/kprobes-test-thumb.c | 0
>> arch/arm/{kernel => probes}/kprobes-test.c | 0
>> arch/arm/{kernel => probes}/kprobes-test.h | 0
>> arch/arm/{kernel => probes}/kprobes-thumb.c | 0
>> arch/arm/{kernel => probes}/kprobes.c | 2 +-
>> arch/arm/{kernel => probes}/kprobes.h | 0
>> arch/arm/{kernel => probes}/probes-arm.c | 0
>> arch/arm/{kernel => probes}/probes-arm.h | 0
>> arch/arm/{kernel => probes}/probes-thumb.c | 0
>> arch/arm/{kernel => probes}/probes-thumb.h | 0
>> arch/arm/{kernel => probes}/probes.c | 0
>> arch/arm/{kernel => probes}/probes.h | 0
>> arch/arm/{kernel => probes}/uprobes-arm.c | 0
>> arch/arm/{kernel => probes}/uprobes.c | 0
>> arch/arm/{kernel => probes}/uprobes.h | 0
>
> As I did on x86, these would be better renamed as expressing what they do.
> I guess most of the files may have emulate-*.c or decode-*.c :)
>
> Thank you,
>

OK. I posted another patch in this thread. The directory tree is as follow:

arch/arm/probes/
|-- Makefile
|-- decode-arm.c
|-- decode-arm.h
|-- decode-thumb.c
|-- decode-thumb.h
|-- decode.c
|-- decode.h
|-- kprobes
| |-- actions-arm.c
| |-- actions-common.c
| |-- actions-thumb.c
| |-- kprobes.c
| |-- kprobes.h
| |-- test-arm.c
| |-- test-core.c
| |-- test-core.h
| `-- test-thumb.c
`-- uprobes
|-- actions-arm.c
|-- uprobes.c
`-- uprobes.h

2 directories, 19 files

What do you think?

>
>




\
 
 \ /
  Last update: 2014-12-02 12:01    [W:0.094 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site