Path: blob/master/arch/mn10300/include/asm/kprobes.h
15126 views
/* MN10300 Kernel Probes support1*2* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.3* Written by Mark Salter ([email protected])4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public Licence as published by7* the Free Software Foundation; either version 2 of the Licence, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public Licence for more details.14*15* You should have received a copy of the GNU General Public Licence16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.18*19*/20#ifndef _ASM_KPROBES_H21#define _ASM_KPROBES_H2223#include <linux/types.h>24#include <linux/ptrace.h>2526struct kprobe;2728typedef unsigned char kprobe_opcode_t;29#define BREAKPOINT_INSTRUCTION 0xff30#define MAX_INSN_SIZE 831#define MAX_STACK_SIZE 1283233/* Architecture specific copy of original instruction */34struct arch_specific_insn {35/* copy of original instruction36*/37kprobe_opcode_t insn[MAX_INSN_SIZE];38};3940extern const int kretprobe_blacklist_size;4142extern int kprobe_exceptions_notify(struct notifier_block *self,43unsigned long val, void *data);4445#define flush_insn_slot(p) do {} while (0)4647extern void arch_remove_kprobe(struct kprobe *p);4849#endif /* _ASM_KPROBES_H */505152