#include <linux/kprobes.h>
#include <linux/module.h>
#include <linux/ptrace.h>
#include <linux/preempt.h>
#include <linux/kdebug.h>
#include <linux/slab.h>
#include <asm/cacheflush.h>
#include <asm/uaccess.h>
Go to the source code of this file.
#define OPCODE_BF |
( |
|
x | ) |
(((x) & 0xFF00) == 0x8b00) |
#define OPCODE_BF_S |
( |
|
x | ) |
(((x) & 0xFF00) == 0x8f00) |
#define OPCODE_BRA |
( |
|
x | ) |
(((x) & 0xF000) == 0xa000) |
#define OPCODE_BRAF |
( |
|
x | ) |
(((x) & 0xF0FF) == 0x0023) |
#define OPCODE_BSR |
( |
|
x | ) |
(((x) & 0xF000) == 0xb000) |
#define OPCODE_BSRF |
( |
|
x | ) |
(((x) & 0xF0FF) == 0x0003) |
#define OPCODE_BT |
( |
|
x | ) |
(((x) & 0xFF00) == 0x8900) |
#define OPCODE_BT_S |
( |
|
x | ) |
(((x) & 0xFF00) == 0x8d00) |
#define OPCODE_JMP |
( |
|
x | ) |
(((x) & 0xF0FF) == 0x402b) |
#define OPCODE_JSR |
( |
|
x | ) |
(((x) & 0xF0FF) == 0x400b) |
#define OPCODE_RTE |
( |
|
x | ) |
(((x) & 0xFFFF) == 0x002b) |
#define OPCODE_RTS |
( |
|
x | ) |
(((x) & 0x000F) == 0x000b) |
If an illegal slot instruction exception occurs for an address containing a kprobe, remove the probe.
Returns 0 if the exception was handled successfully, 1 otherwise.
Definition at line 89 of file kprobes.c.