kprobes.h (0337966d121ebebf73a1c346123e8112796e684e) | kprobes.h (698b851073ddf5a894910d63ca04605e0473414e) |
---|---|
1/* 2 * Kernel Probes (KProbes) 3 * include/asm-mips/kprobes.h 4 * 5 * Copyright 2006 Sony Corp. 6 * Copyright 2010 Cavium Networks 7 * 8 * This program is free software; you can redistribute it and/or modify --- 29 unchanged lines hidden (view full) --- 38struct pt_regs; 39 40typedef union mips_instruction kprobe_opcode_t; 41 42#define MAX_INSN_SIZE 2 43 44#define flush_insn_slot(p) \ 45do { \ | 1/* 2 * Kernel Probes (KProbes) 3 * include/asm-mips/kprobes.h 4 * 5 * Copyright 2006 Sony Corp. 6 * Copyright 2010 Cavium Networks 7 * 8 * This program is free software; you can redistribute it and/or modify --- 29 unchanged lines hidden (view full) --- 38struct pt_regs; 39 40typedef union mips_instruction kprobe_opcode_t; 41 42#define MAX_INSN_SIZE 2 43 44#define flush_insn_slot(p) \ 45do { \ |
46 flush_icache_range((unsigned long)p->addr, \ | 46 if (p->addr) \ 47 flush_icache_range((unsigned long)p->addr, \ |
47 (unsigned long)p->addr + \ 48 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \ 49} while (0) 50 51 52#define kretprobe_blacklist_size 0 53 54void arch_remove_kprobe(struct kprobe *p); --- 47 unchanged lines hidden --- | 48 (unsigned long)p->addr + \ 49 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \ 50} while (0) 51 52 53#define kretprobe_blacklist_size 0 54 55void arch_remove_kprobe(struct kprobe *p); --- 47 unchanged lines hidden --- |