mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 18:44:44 +08:00
1802d0beec
Based on 1 normalized pattern(s): 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 this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 655 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
29 lines
627 B
C
29 lines
627 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* arch/arm64/include/asm/probes.h
|
|
*
|
|
* Copyright (C) 2013 Linaro Limited
|
|
*/
|
|
#ifndef _ARM_PROBES_H
|
|
#define _ARM_PROBES_H
|
|
|
|
typedef u32 probe_opcode_t;
|
|
typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *);
|
|
|
|
/* architecture specific copy of original instruction */
|
|
struct arch_probe_insn {
|
|
probe_opcode_t *insn;
|
|
pstate_check_t *pstate_cc;
|
|
probes_handler_t *handler;
|
|
/* restore address after step xol */
|
|
unsigned long restore;
|
|
};
|
|
#ifdef CONFIG_KPROBES
|
|
typedef u32 kprobe_opcode_t;
|
|
struct arch_specific_insn {
|
|
struct arch_probe_insn api;
|
|
};
|
|
#endif
|
|
|
|
#endif
|