Path: blob/master/arch/avr32/include/asm/kprobes.h
10819 views
/*1* Kernel Probes (KProbes)2*3* Copyright (C) 2005-2006 Atmel Corporation4* Copyright (C) IBM Corporation, 2002, 20045*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License version 2 as8* published by the Free Software Foundation.9*/10#ifndef __ASM_AVR32_KPROBES_H11#define __ASM_AVR32_KPROBES_H1213#include <linux/types.h>1415typedef u16 kprobe_opcode_t;16#define BREAKPOINT_INSTRUCTION 0xd673 /* breakpoint */17#define MAX_INSN_SIZE 21819#define kretprobe_blacklist_size 02021#define arch_remove_kprobe(p) do { } while (0)2223/* Architecture specific copy of original instruction */24struct arch_specific_insn {25kprobe_opcode_t insn[MAX_INSN_SIZE];26};2728extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);29extern int kprobe_exceptions_notify(struct notifier_block *self,30unsigned long val, void *data);3132#define flush_insn_slot(p) do { } while (0)3334#endif /* __ASM_AVR32_KPROBES_H */353637