Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 #ifndef _ASM_UPROBES_H
0003 #define _ASM_UPROBES_H
0004 /*
0005  * User-space Probes (UProbes) for powerpc
0006  *
0007  * Copyright IBM Corporation, 2007-2012
0008  *
0009  * Adapted from the x86 port by Ananth N Mavinakayanahalli <ananth@in.ibm.com>
0010  */
0011 
0012 #include <linux/notifier.h>
0013 #include <asm/probes.h>
0014 
0015 typedef u32 uprobe_opcode_t;
0016 
0017 #define MAX_UINSN_BYTES     8
0018 #define UPROBE_XOL_SLOT_BYTES   (MAX_UINSN_BYTES)
0019 
0020 /* The following alias is needed for reference from arch-agnostic code */
0021 #define UPROBE_SWBP_INSN    BREAKPOINT_INSTRUCTION
0022 #define UPROBE_SWBP_INSN_SIZE   4 /* swbp insn size in bytes */
0023 
0024 struct arch_uprobe {
0025     union {
0026         u32 insn[2];
0027         u32 ixol[2];
0028     };
0029 };
0030 
0031 struct arch_uprobe_task {
0032     unsigned long   saved_trap_nr;
0033 };
0034 
0035 #endif  /* _ASM_UPROBES_H */