.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | #ifndef _ASM_UPROBES_H |
---|
2 | 3 | #define _ASM_UPROBES_H |
---|
3 | 4 | /* |
---|
4 | 5 | * 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. |
---|
19 | 6 | * |
---|
20 | 7 | * Copyright IBM Corporation, 2007-2012 |
---|
21 | 8 | * |
---|
.. | .. |
---|
24 | 11 | |
---|
25 | 12 | #include <linux/notifier.h> |
---|
26 | 13 | #include <asm/probes.h> |
---|
| 14 | +#include <asm/inst.h> |
---|
27 | 15 | |
---|
28 | 16 | typedef ppc_opcode_t uprobe_opcode_t; |
---|
29 | 17 | |
---|
30 | | -#define MAX_UINSN_BYTES 4 |
---|
| 18 | +#define MAX_UINSN_BYTES 8 |
---|
31 | 19 | #define UPROBE_XOL_SLOT_BYTES (MAX_UINSN_BYTES) |
---|
32 | 20 | |
---|
33 | 21 | /* The following alias is needed for reference from arch-agnostic code */ |
---|
.. | .. |
---|
36 | 24 | |
---|
37 | 25 | struct arch_uprobe { |
---|
38 | 26 | union { |
---|
39 | | - u32 insn; |
---|
40 | | - u32 ixol; |
---|
| 27 | + struct ppc_inst insn; |
---|
| 28 | + struct ppc_inst ixol; |
---|
41 | 29 | }; |
---|
42 | 30 | }; |
---|
43 | 31 | |
---|