probes.h (7118e7e648e0a902bf4f38c55a25fcff730f33d7) | probes.h (28e1e58fb668e262648fb8ee8a24154633f40507) |
---|---|
1#ifndef _ASM_POWERPC_PROBES_H 2#define _ASM_POWERPC_PROBES_H 3#ifdef __KERNEL__ 4/* 5 * Definitions common to probes files 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 8 unchanged lines hidden (view full) --- 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 * 21 * Copyright IBM Corporation, 2012 22 */ 23#include <linux/types.h> 24 | 1#ifndef _ASM_POWERPC_PROBES_H 2#define _ASM_POWERPC_PROBES_H 3#ifdef __KERNEL__ 4/* 5 * Definitions common to probes files 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 8 unchanged lines hidden (view full) --- 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 * 21 * Copyright IBM Corporation, 2012 22 */ 23#include <linux/types.h> 24 |
25typedef u32 opcode_t; | 25typedef u32 ppc_opcode_t; |
26#define BREAKPOINT_INSTRUCTION 0x7fe00008 /* trap */ 27 28/* Trap definitions per ISA */ 29#define IS_TW(instr) (((instr) & 0xfc0007fe) == 0x7c000008) 30#define IS_TD(instr) (((instr) & 0xfc0007fe) == 0x7c000088) 31#define IS_TDI(instr) (((instr) & 0xfc000000) == 0x08000000) 32#define IS_TWI(instr) (((instr) & 0xfc000000) == 0x0c000000) 33 34#ifdef CONFIG_PPC64 35#define is_trap(instr) (IS_TW(instr) || IS_TD(instr) || \ 36 IS_TWI(instr) || IS_TDI(instr)) 37#else 38#define is_trap(instr) (IS_TW(instr) || IS_TWI(instr)) 39#endif /* CONFIG_PPC64 */ 40 41#endif /* __KERNEL__ */ 42#endif /* _ASM_POWERPC_PROBES_H */ | 26#define BREAKPOINT_INSTRUCTION 0x7fe00008 /* trap */ 27 28/* Trap definitions per ISA */ 29#define IS_TW(instr) (((instr) & 0xfc0007fe) == 0x7c000008) 30#define IS_TD(instr) (((instr) & 0xfc0007fe) == 0x7c000088) 31#define IS_TDI(instr) (((instr) & 0xfc000000) == 0x08000000) 32#define IS_TWI(instr) (((instr) & 0xfc000000) == 0x0c000000) 33 34#ifdef CONFIG_PPC64 35#define is_trap(instr) (IS_TW(instr) || IS_TD(instr) || \ 36 IS_TWI(instr) || IS_TDI(instr)) 37#else 38#define is_trap(instr) (IS_TW(instr) || IS_TWI(instr)) 39#endif /* CONFIG_PPC64 */ 40 41#endif /* __KERNEL__ */ 42#endif /* _ASM_POWERPC_PROBES_H */ |