Print this page
9210 remove KMDB branch debugging support
9211 ::crregs could do with cr2/cr3 support
9209 ::ttrace should be able to filter by thread
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/mdb/intel/kmdb/kmdb_kdi_isadep.c
+++ new/usr/src/cmd/mdb/intel/kmdb/kmdb_kdi_isadep.c
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 + *
25 + * Copyright 2018 Joyent, Inc.
24 26 */
25 27
26 -#pragma ident "%Z%%M% %I% %E% SMI"
27 -
28 28 #include <sys/types.h>
29 29 #include <sys/kdi_impl.h>
30 30 #include <sys/segments.h>
31 31 #include <sys/cpuvar.h>
32 32
33 33 #include <mdb/mdb_debug.h>
34 34 #include <mdb/mdb_err.h>
35 35 #include <mdb/mdb_umem.h>
36 36 #include <kmdb/kmdb_dpi.h>
37 37 #include <mdb/mdb.h>
38 38
39 39 /*ARGSUSED*/
40 40 void
41 41 kmdb_kdi_stop_slaves(int my_cpuid, int doxc)
42 42 {
43 43 /* Stop other CPUs if there are CPUs to stop */
44 44 mdb.m_kdi->mkdi_stop_slaves(my_cpuid, doxc);
45 45 }
46 46
47 47 void
48 48 kmdb_kdi_start_slaves(void)
49 49 {
50 50 mdb.m_kdi->mkdi_start_slaves();
51 51 }
52 52
53 53 void
54 54 kmdb_kdi_slave_wait(void)
55 55 {
56 56 mdb.m_kdi->mkdi_slave_wait();
57 57 }
58 58
59 59 uintptr_t
60 60 kmdb_kdi_get_userlimit(void)
61 61 {
62 62 return (mdb.m_kdi->mkdi_get_userlimit());
63 63 }
64 64
65 65 int
66 66 kmdb_kdi_get_cpuinfo(uint_t *vendorp, uint_t *familyp, uint_t *modelp)
67 67 {
68 68 int err;
69 69
70 70 if ((err = mdb.m_kdi->mkdi_get_cpuinfo(vendorp, familyp, modelp)) != 0)
71 71 return (set_errno(err));
72 72
73 73 return (0);
74 74 }
75 75
76 76 /*ARGSUSED*/
77 77 void
78 78 kmdb_kdi_init_isadep(kdi_t *kdi, kmdb_auxv_t *kav)
79 79 {
80 80 }
81 81
82 82 void
83 83 kmdb_kdi_activate(kdi_main_t main, kdi_cpusave_t *cpusave, int ncpusave)
84 84 {
85 85 mdb.m_kdi->mkdi_activate(main, cpusave, ncpusave);
86 86 }
87 87
88 88 void
89 89 kmdb_kdi_deactivate(void)
90 90 {
91 91 mdb.m_kdi->mkdi_deactivate();
92 92 }
93 93
94 94 void
95 95 kmdb_kdi_idt_switch(kdi_cpusave_t *cpusave)
↓ open down ↓ |
58 lines elided |
↑ open up ↑ |
96 96 {
97 97 mdb.m_kdi->mkdi_idt_switch(cpusave);
98 98 }
99 99
100 100 void
101 101 kmdb_kdi_update_drreg(kdi_drreg_t *drreg)
102 102 {
103 103 mdb.m_kdi->mkdi_update_drreg(drreg);
104 104 }
105 105
106 -void
107 -kmdb_kdi_set_debug_msrs(kdi_msr_t *msrs)
108 -{
109 - mdb.m_kdi->mkdi_set_debug_msrs(msrs);
110 -}
111 -
112 106 void
113 107 kmdb_kdi_memrange_add(caddr_t base, size_t len)
114 108 {
115 109 mdb.m_kdi->mkdi_memrange_add(base, len);
116 110 }
117 111
118 112 void
119 113 kmdb_kdi_reboot(void)
120 114 {
121 115 mdb.m_kdi->mkdi_reboot();
122 116 }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX