#include <linux/kernel.h>
#include <linux/highmem.h>
#include <linux/pagemap.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/rmap.h>
#include <linux/mmu_notifier.h>
#include <linux/swap.h>
#include <linux/ptrace.h>
#include <linux/kdebug.h>
#include "../../mm/internal.h"
#include <linux/uprobes.h>
Go to the source code of this file.
|
bool __weak | is_swbp_insn (uprobe_opcode_t *insn) |
|
int __weak | set_swbp (struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr) |
|
int __weak | set_orig_insn (struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr) |
|
int | uprobe_register (struct inode *inode, loff_t offset, struct uprobe_consumer *uc) |
|
void | uprobe_unregister (struct inode *inode, loff_t offset, struct uprobe_consumer *uc) |
|
int | uprobe_mmap (struct vm_area_struct *vma) |
|
void | uprobe_munmap (struct vm_area_struct *vma, unsigned long start, unsigned long end) |
|
void | uprobe_clear_state (struct mm_struct *mm) |
|
void | uprobe_dup_mmap (struct mm_struct *oldmm, struct mm_struct *newmm) |
|
unsigned long __weak | uprobe_get_swbp_addr (struct pt_regs *regs) |
|
void | uprobe_free_utask (struct task_struct *t) |
|
void | uprobe_copy_process (struct task_struct *t) |
|
bool | uprobe_deny_signal (void) |
|
void __weak | arch_uprobe_enable_step (struct arch_uprobe *arch) |
|
void __weak | arch_uprobe_disable_step (struct arch_uprobe *arch) |
|
void | uprobe_notify_resume (struct pt_regs *regs) |
|
int | uprobe_pre_sstep_notifier (struct pt_regs *regs) |
|
int | uprobe_post_sstep_notifier (struct pt_regs *regs) |
|
| module_init (init_uprobes) |
|
| module_exit (exit_uprobes) |
|
#define UPROBE_COPY_INSN 0 |
#define UPROBE_RUN_HANDLER 1 |
#define UPROBE_SKIP_SSTEP 2 |
#define UPROBES_HASH_SZ 13 |
is_swbp_insn - check if instruction is breakpoint instruction. : instruction to be checked. Default implementation of is_swbp_insn Returns true if is a breakpoint instruction.
Definition at line 194 of file uprobes.c.
module_exit |
( |
exit_uprobes |
| ) |
|
module_init |
( |
init_uprobes |
| ) |
|
set_orig_insn - Restore the original instruction. : the probed process address space. : arch specific probepoint information. : the virtual address to insert the opcode.
For mm , restore the original opcode (opcode) at . Return 0 (success) or a negative errno.
Definition at line 322 of file uprobes.c.
set_swbp - store breakpoint at a given address. : arch specific probepoint information. : the probed process address space. : the virtual address to insert the opcode.
For mm , store the breakpoint instruction at . Return 0 (success) or a negative errno.
Definition at line 307 of file uprobes.c.
uprobe_get_swbp_addr - compute address of swbp given post-swbp regs : Reflects the saved state of the task after it has hit a breakpoint instruction. Return the address of the breakpoint instruction.
Definition at line 1251 of file uprobes.c.