Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef _ASM_UPROBES_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define _ASM_UPROBES_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * User-space Probes (UProbes) for powerpc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Copyright IBM Corporation, 2007-2012
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * Adapted from the x86 port by Ananth N Mavinakayanahalli <ananth@in.ibm.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/notifier.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <asm/probes.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <asm/inst.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) typedef ppc_opcode_t uprobe_opcode_t;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define MAX_UINSN_BYTES		8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define UPROBE_XOL_SLOT_BYTES	(MAX_UINSN_BYTES)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) /* The following alias is needed for reference from arch-agnostic code */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define UPROBE_SWBP_INSN	BREAKPOINT_INSTRUCTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define UPROBE_SWBP_INSN_SIZE	4 /* swbp insn size in bytes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) struct arch_uprobe {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	union {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 		struct ppc_inst	insn;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 		struct ppc_inst	ixol;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) struct arch_uprobe_task {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	unsigned long	saved_trap_nr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #endif	/* _ASM_UPROBES_H */