debuggers.hg

view xen/include/public/arch-ia64/debug_op.h @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children
line source
1 /******************************************************************************
2 * debug_op.h
3 *
4 * Copyright (c) 2007 Tristan Gingold <tgingold@free.fr>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 */
22 #ifndef __XEN_PUBLIC_IA64_DEBUG_OP_H__
23 #define __XEN_PUBLIC_IA64_DEBUG_OP_H__
25 /* Set/Get extra conditions to break. */
26 #define XEN_IA64_DEBUG_OP_SET_FLAGS 1
27 #define XEN_IA64_DEBUG_OP_GET_FLAGS 2
29 /* Break on kernel single step. */
30 #define XEN_IA64_DEBUG_ON_KERN_SSTEP (1 << 0)
32 /* Break on kernel debug (breakpoint or watch point). */
33 #define XEN_IA64_DEBUG_ON_KERN_DEBUG (1 << 1)
35 /* Break on kernel taken branch. */
36 #define XEN_IA64_DEBUG_ON_KERN_TBRANCH (1 << 2)
38 /* Break on interrupt injection. */
39 #define XEN_IA64_DEBUG_ON_EXTINT (1 << 3)
41 /* Break on interrupt injection. */
42 #define XEN_IA64_DEBUG_ON_EXCEPT (1 << 4)
44 /* Break on event injection. */
45 #define XEN_IA64_DEBUG_ON_EVENT (1 << 5)
47 /* Break on privop/virtualized instruction (slow path only). */
48 #define XEN_IA64_DEBUG_ON_PRIVOP (1 << 6)
50 /* Break on emulated PAL call (at entry). */
51 #define XEN_IA64_DEBUG_ON_PAL (1 << 7)
53 /* Break on emulated SAL call (at entry). */
54 #define XEN_IA64_DEBUG_ON_SAL (1 << 8)
56 /* Break on emulated EFI call (at entry). */
57 #define XEN_IA64_DEBUG_ON_EFI (1 << 9)
59 /* Break on rfi emulation (slow path only, before exec). */
60 #define XEN_IA64_DEBUG_ON_RFI (1 << 10)
62 /* Break on address translation switch. */
63 #define XEN_IA64_DEBUG_ON_MMU (1 << 11)
65 /* Break on bad guest physical address. */
66 #define XEN_IA64_DEBUG_ON_BAD_MPA (1 << 12)
68 /* Force psr.ss bit. */
69 #define XEN_IA64_DEBUG_FORCE_SS (1 << 13)
71 /* Force psr.db bit. */
72 #define XEN_IA64_DEBUG_FORCE_DB (1 << 14)
74 /* Break on ITR/PTR. */
75 #define XEN_IA64_DEBUG_ON_TR (1 << 15)
77 /* Break on ITC/PTC.L/PTC.G/PTC.GA. */
78 #define XEN_IA64_DEBUG_ON_TC (1 << 16)
80 /* Get translation cache. */
81 #define XEN_IA64_DEBUG_OP_GET_TC 3
83 /* Translate virtual address to guest physical address. */
84 #define XEN_IA64_DEBUG_OP_TRANSLATE 4
86 union xen_ia64_debug_op {
87 uint64_t flags;
88 struct xen_ia64_debug_vtlb {
89 uint64_t nbr; /* IN/OUT */
90 XEN_GUEST_HANDLE_64(ia64_tr_entry_t) tr; /* IN/OUT */
91 } vtlb;
92 };
93 typedef union xen_ia64_debug_op xen_ia64_debug_op_t;
94 DEFINE_XEN_GUEST_HANDLE(xen_ia64_debug_op_t);
96 #endif /* __XEN_PUBLIC_IA64_DEBUG_OP_H__ */