#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/ptrace.h>
#include <linux/uprobes.h>
#include <linux/uaccess.h>
#include <linux/kdebug.h>
#include <asm/processor.h>
#include <asm/insn.h>
Go to the source code of this file.
|
#define | UPROBE_FIX_NONE 0x0 |
|
#define | UPROBE_FIX_IP 0x1 |
|
#define | UPROBE_FIX_CALL 0x2 |
|
#define | UPROBE_FIX_SETF 0x4 |
|
#define | UPROBE_FIX_RIP_AX 0x8000 |
|
#define | UPROBE_FIX_RIP_CX 0x4000 |
|
#define | UPROBE_TRAP_NR UINT_MAX |
|
#define | OPCODE1(insn) ((insn)->opcode.bytes[0]) |
|
#define | OPCODE2(insn) ((insn)->opcode.bytes[1]) |
|
#define | OPCODE3(insn) ((insn)->opcode.bytes[2]) |
|
#define | MODRM_REG(insn) X86_MODRM_REG(insn->modrm.value) |
|
#define | W(row, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf) |
|
#define UPROBE_FIX_CALL 0x2 |
#define UPROBE_FIX_IP 0x1 |
#define UPROBE_FIX_NONE 0x0 |
#define UPROBE_FIX_RIP_AX 0x8000 |
#define UPROBE_FIX_RIP_CX 0x4000 |
#define UPROBE_FIX_SETF 0x4 |
#define W |
( |
|
row, |
|
|
|
b0, |
|
|
|
b1, |
|
|
|
b2, |
|
|
|
b3, |
|
|
|
b4, |
|
|
|
b5, |
|
|
|
b6, |
|
|
|
b7, |
|
|
|
b8, |
|
|
|
b9, |
|
|
|
ba, |
|
|
|
bb, |
|
|
|
bc, |
|
|
|
bd, |
|
|
|
be, |
|
|
|
bf |
|
) |
| |
Value:(((b0##
UL << 0x0)|(b1##
UL << 0x1)|(b2##
UL << 0x2)|(b3##
UL << 0x3) | \
(b4##
UL << 0x4)|(b5##
UL << 0x5)|(b6##
UL << 0x6)|(b7##
UL << 0x7) | \
(b8##
UL << 0x8)|(b9##
UL << 0x9)|(ba##
UL << 0xa)|(
bb##
UL << 0
xb) | \
(
bc##
UL << 0xc)|(bd##
UL << 0xd)|(be##
UL << 0xe)|(
bf##
UL << 0xf)) \
<< (row % 32))
Definition at line 58 of file uprobes.c.
arch_uprobe_analyze_insn - instruction analysis including validity and fixups. : the probed address space. : the probepoint information. : virtual address at which to install the probepoint Return 0 on success or a -ve number on error.
Definition at line 422 of file uprobes.c.