Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/mdb/common/modules/genunix/thread.h
+++ new/usr/src/cmd/mdb/common/modules/genunix/thread.h
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 2009 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 + *
25 + * Copyright (c) 2018, Joyent, Inc.
24 26 */
25 27
26 28 #ifndef _THREAD_H
27 29 #define _THREAD_H
28 30
29 31
30 32 #include <mdb/mdb_modapi.h>
31 33
32 34 #ifdef __cplusplus
33 35 extern "C" {
34 36 #endif
35 37
36 38 int thread_walk_init(mdb_walk_state_t *);
37 39 int thread_walk_step(mdb_walk_state_t *);
38 40 void thread_walk_fini(mdb_walk_state_t *);
39 41
40 42 int deathrow_walk_init(mdb_walk_state_t *);
41 43 int deathrow_walk_step(mdb_walk_state_t *);
42 44 int thread_deathrow_walk_init(mdb_walk_state_t *);
43 45 int lwp_deathrow_walk_init(mdb_walk_state_t *);
44 46
45 47 int cpu_dispq_walk_init(mdb_walk_state_t *);
46 48 int cpupart_dispq_walk_init(mdb_walk_state_t *);
47 49 int dispq_walk_step(mdb_walk_state_t *);
48 50 void dispq_walk_fini(mdb_walk_state_t *);
49 51
50 52 int thread(uintptr_t, uint_t, int, const mdb_arg_t *);
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
51 53 void thread_help(void);
52 54 int threadlist(uintptr_t, uint_t, int, const mdb_arg_t *);
53 55 void threadlist_help(void);
54 56 int stackinfo(uintptr_t, uint_t, int, const mdb_arg_t *);
55 57 void stackinfo_help(void);
56 58
57 59 void thread_state_to_text(uint_t, char *, size_t);
58 60 int thread_text_to_state(const char *, uint_t *);
59 61 void thread_walk_states(void (*)(uint_t, const char *, void *), void *);
60 62
63 +int thread_getdesc(uintptr_t, boolean_t, char *, size_t);
64 +
61 65 #ifdef __cplusplus
62 66 }
63 67 #endif
64 68
65 69 #endif /* _THREAD_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX