hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/powerpc/include/asm/uprobes.h
....@@ -1,21 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 #ifndef _ASM_UPROBES_H
23 #define _ASM_UPROBES_H
34 /*
45 * User-space Probes (UProbes) for powerpc
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
196 *
207 * Copyright IBM Corporation, 2007-2012
218 *
....@@ -24,10 +11,11 @@
2411
2512 #include <linux/notifier.h>
2613 #include <asm/probes.h>
14
+#include <asm/inst.h>
2715
2816 typedef ppc_opcode_t uprobe_opcode_t;
2917
30
-#define MAX_UINSN_BYTES 4
18
+#define MAX_UINSN_BYTES 8
3119 #define UPROBE_XOL_SLOT_BYTES (MAX_UINSN_BYTES)
3220
3321 /* The following alias is needed for reference from arch-agnostic code */
....@@ -36,8 +24,8 @@
3624
3725 struct arch_uprobe {
3826 union {
39
- u32 insn;
40
- u32 ixol;
27
+ struct ppc_inst insn;
28
+ struct ppc_inst ixol;
4129 };
4230 };
4331