Mercurial > hg > graal-jvmci-8
comparison agent/src/os/solaris/proc/salibproc.h @ 3306:405c634f4aaa
7028172: 3/4 SA needs to adapt to Solaris libproc change made in 6748307
Summary: Support build and runtime configs of old and new interfaces as appropriate.
Reviewed-by: acorn, never
author | dcubed |
---|---|
date | Mon, 02 May 2011 14:53:49 -0700 |
parents | c18cbe5936b8 |
children |
comparison
equal
deleted
inserted
replaced
3305:dddc5753c53a | 3306:405c634f4aaa |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
99 extern int Pstop(struct ps_prochandle *, uint_t); | 99 extern int Pstop(struct ps_prochandle *, uint_t); |
100 | 100 |
101 /* | 101 /* |
102 * Stack frame iteration interface. | 102 * Stack frame iteration interface. |
103 */ | 103 */ |
104 #ifdef SOLARIS_11_B159_OR_LATER | |
105 /* building on Nevada-B159 or later so define the new callback */ | |
106 typedef int proc_stack_f( | |
107 void *, /* the cookie given to Pstack_iter() */ | |
108 const prgregset_t, /* the frame's registers */ | |
109 uint_t, /* argc for the frame's function */ | |
110 const long *, /* argv for the frame's function */ | |
111 int, /* bitwise flags describing the frame (see below) */ | |
112 int); /* a signal number */ | |
113 | |
114 #define PR_SIGNAL_FRAME 1 /* called by a signal handler */ | |
115 #define PR_FOUND_SIGNAL 2 /* we found the corresponding signal number */ | |
116 #else | |
117 /* building on Nevada-B158 or earlier so define the old callback */ | |
104 typedef int proc_stack_f(void *, const prgregset_t, uint_t, const long *); | 118 typedef int proc_stack_f(void *, const prgregset_t, uint_t, const long *); |
119 #endif | |
120 | |
105 extern int Pstack_iter(struct ps_prochandle *, | 121 extern int Pstack_iter(struct ps_prochandle *, |
106 const prgregset_t, proc_stack_f *, void *); | 122 const prgregset_t, proc_stack_f *, void *); |
107 | 123 |
108 #define PR_OBJ_EVERY ((const char *)-1) /* search every load object */ | 124 #define PR_OBJ_EVERY ((const char *)-1) /* search every load object */ |
109 | 125 |