Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pf_in.c File Reference
#include <linux/module.h>
#include <linux/ptrace.h>
#include "pf_in.h"

Go to the source code of this file.

Data Structures

struct  prefix_bits
 

Macros

#define CHECK_OP_TYPE(opcode, array, type)
 

Enumerations

enum  {
  arg_AL = 0, arg_CL = 1, arg_DL = 2, arg_BL = 3,
  arg_AH = 4, arg_CH = 5, arg_DH = 6, arg_BH = 7,
  arg_AX = 0, arg_CX = 1, arg_DX = 2, arg_BX = 3,
  arg_SP = 4, arg_BP = 5, arg_SI = 6, arg_DI = 7
}
 

Functions

enum reason_type get_ins_type (unsigned long ins_addr)
 
unsigned int get_ins_mem_width (unsigned long ins_addr)
 
unsigned long get_ins_reg_val (unsigned long ins_addr, struct pt_regs *regs)
 
unsigned long get_ins_imm_val (unsigned long ins_addr)
 

Macro Definition Documentation

#define CHECK_OP_TYPE (   opcode,
  array,
  type 
)
Value:
for (i = 0; i < ARRAY_SIZE(array); i++) { \
if (array[i] == opcode) { \
rv = type; \
goto exit; \
} \
}

Definition at line 135 of file pf_in.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
arg_AL 
arg_CL 
arg_DL 
arg_BL 
arg_AH 
arg_CH 
arg_DH 
arg_BH 
arg_AX 
arg_CX 
arg_DX 
arg_BX 
arg_SP 
arg_BP 
arg_SI 
arg_DI 

Definition at line 222 of file pf_in.c.

Function Documentation

unsigned long get_ins_imm_val ( unsigned long  ins_addr)

Definition at line 464 of file pf_in.c.

unsigned int get_ins_mem_width ( unsigned long  ins_addr)

Definition at line 187 of file pf_in.c.

unsigned long get_ins_reg_val ( unsigned long  ins_addr,
struct pt_regs regs 
)

Definition at line 410 of file pf_in.c.

enum reason_type get_ins_type ( unsigned long  ins_addr)

Definition at line 143 of file pf_in.c.