mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
fca08f326a
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>
36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
/*
|
|
* Copyright (C) 2012 Rabin Vincent <rabin at rab.in>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __ARM_KERNEL_UPROBES_H
|
|
#define __ARM_KERNEL_UPROBES_H
|
|
|
|
enum probes_insn uprobe_decode_ldmstm(probes_opcode_t insn,
|
|
struct arch_probes_insn *asi,
|
|
const struct decode_header *d);
|
|
|
|
enum probes_insn decode_ldr(probes_opcode_t insn,
|
|
struct arch_probes_insn *asi,
|
|
const struct decode_header *d);
|
|
|
|
enum probes_insn
|
|
decode_rd12rn16rm0rs8_rwflags(probes_opcode_t insn,
|
|
struct arch_probes_insn *asi,
|
|
const struct decode_header *d);
|
|
|
|
enum probes_insn
|
|
decode_wb_pc(probes_opcode_t insn, struct arch_probes_insn *asi,
|
|
const struct decode_header *d, bool alu);
|
|
|
|
enum probes_insn
|
|
decode_pc_ro(probes_opcode_t insn, struct arch_probes_insn *asi,
|
|
const struct decode_header *d);
|
|
|
|
extern const union decode_action uprobes_probes_actions[];
|
|
|
|
#endif
|