Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
kprobes.h File Reference
#include <linux/linkage.h>
#include <linux/list.h>
#include <linux/notifier.h>
#include <linux/smp.h>
#include <linux/bug.h>
#include <linux/percpu.h>
#include <linux/spinlock.h>
#include <linux/rcupdate.h>
#include <linux/mutex.h>
#include <linux/ftrace.h>

Go to the source code of this file.

Data Structures

struct  arch_specific_insn
 
struct  kprobe
 
struct  jprobe
 
struct  kretprobe
 
struct  kretprobe_instance
 
struct  kretprobe_blackpoint
 
struct  kprobe_blackpoint
 

Macros

#define __kprobes
 
#define KPROBE_FLAG_GONE   1 /* breakpoint has already gone */
 
#define KPROBE_FLAG_DISABLED   2 /* probe is temporarily disabled */
 
#define KPROBE_FLAG_OPTIMIZED
 
#define KPROBE_FLAG_FTRACE   8 /* probe is using ftrace */
 
#define JPROBE_ENTRY(handler)   (handler)
 

Typedefs

typedef int kprobe_opcode_t
 
typedef int(* kprobe_pre_handler_t )(struct kprobe *, struct pt_regs *)
 
typedef int(* kprobe_break_handler_t )(struct kprobe *, struct pt_regs *)
 
typedef void(* kprobe_post_handler_t )(struct kprobe *, struct pt_regs *, unsigned long flags)
 
typedef int(* kprobe_fault_handler_t )(struct kprobe *, struct pt_regs *, int trapnr)
 
typedef int(* kretprobe_handler_t )(struct kretprobe_instance *, struct pt_regs *)
 

Macro Definition Documentation

#define __kprobes

Definition at line 70 of file kprobes.h.

#define JPROBE_ENTRY (   handler)    (handler)

Definition at line 182 of file kprobes.h.

#define KPROBE_FLAG_DISABLED   2 /* probe is temporarily disabled */

Definition at line 138 of file kprobes.h.

#define KPROBE_FLAG_FTRACE   8 /* probe is using ftrace */

Definition at line 140 of file kprobes.h.

#define KPROBE_FLAG_GONE   1 /* breakpoint has already gone */

Definition at line 137 of file kprobes.h.

#define KPROBE_FLAG_OPTIMIZED
Value:
4 /*
* probe is really optimized.
* NOTE:
* this flag is only for optimized_kprobe.
*/

Definition at line 139 of file kprobes.h.

Typedef Documentation

typedef int(* kprobe_break_handler_t)(struct kprobe *, struct pt_regs *)

Definition at line 79 of file kprobes.h.

typedef int(* kprobe_fault_handler_t)(struct kprobe *, struct pt_regs *, int trapnr)

Definition at line 82 of file kprobes.h.

Definition at line 66 of file kprobes.h.

typedef void(* kprobe_post_handler_t)(struct kprobe *, struct pt_regs *, unsigned long flags)

Definition at line 80 of file kprobes.h.

typedef int(* kprobe_pre_handler_t)(struct kprobe *, struct pt_regs *)

Definition at line 78 of file kprobes.h.

typedef int(* kretprobe_handler_t)(struct kretprobe_instance *, struct pt_regs *)

Definition at line 84 of file kprobes.h.