]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/contrib/ia64/libuwx/src/uwx_ttrace.h
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / sys / contrib / ia64 / libuwx / src / uwx_ttrace.h
1 /*
2 Copyright (c) 2003 Hewlett-Packard Development Company, L.P.
3 Permission is hereby granted, free of charge, to any person
4 obtaining a copy of this software and associated documentation
5 files (the "Software"), to deal in the Software without
6 restriction, including without limitation the rights to use,
7 copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the
9 Software is furnished to do so, subject to the following
10 conditions:
11
12 The above copyright notice and this permission notice shall be
13 included in all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 OTHER DEALINGS IN THE SOFTWARE.
23 */
24
25 #include <signal.h>
26
27 struct uwx_ttrace_info;
28
29 extern struct uwx_ttrace_info *uwx_ttrace_init_info(
30     struct uwx_env *env,
31     pid_t pid,
32     lwpid_t lwpid,
33     uint64_t load_map);
34
35 extern int uwx_ttrace_free_info(struct uwx_ttrace_info *info);
36
37 extern int uwx_ttrace_init_context(
38     struct uwx_env *env,
39     struct uwx_ttrace_info *info);
40
41 extern int uwx_ttrace_init_from_sigcontext(
42     struct uwx_env *env,
43     struct uwx_ttrace_info *info,
44     uint64_t ucontext);
45
46 extern int uwx_ttrace_do_context_frame(
47     struct uwx_env *env,
48     struct uwx_ttrace_info *info);
49
50 extern int uwx_ttrace_copyin(
51     int request,
52     char *loc,
53     uint64_t rem,
54     int len,
55     intptr_t tok);
56
57 extern int uwx_ttrace_lookupip(
58     int request,
59     uint64_t ip,
60     intptr_t tok,
61     uint64_t **resultp);
62
63 #define UWX_TT_ERR_BADABICONTEXT        (-101)
64 #define UWX_TT_ERR_TTRACE               (-102)