comparison agent/src/os/solaris/proc/libproc.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) 2002, 2003, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2002, 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.
418 extern uintptr_t Ppltdest(struct ps_prochandle *, uintptr_t, int *); 418 extern uintptr_t Ppltdest(struct ps_prochandle *, uintptr_t, int *);
419 419
420 /* 420 /*
421 * Stack frame iteration interface. 421 * Stack frame iteration interface.
422 */ 422 */
423 #ifdef SOLARIS_11_B159_OR_LATER
424 /* building on Nevada-B159 or later so define the new callback */
425 typedef int proc_stack_f(
426 void *, /* the cookie given to Pstack_iter() */
427 const prgregset_t, /* the frame's registers */
428 uint_t, /* argc for the frame's function */
429 const long *, /* argv for the frame's function */
430 int, /* bitwise flags describing the frame (see below) */
431 int); /* a signal number */
432
433 #define PR_SIGNAL_FRAME 1 /* called by a signal handler */
434 #define PR_FOUND_SIGNAL 2 /* we found the corresponding signal number */
435 #else
436 /* building on Nevada-B158 or earlier so define the old callback */
423 typedef int proc_stack_f(void *, const prgregset_t, uint_t, const long *); 437 typedef int proc_stack_f(void *, const prgregset_t, uint_t, const long *);
438 #endif
424 439
425 extern int Pstack_iter(struct ps_prochandle *, 440 extern int Pstack_iter(struct ps_prochandle *,
426 const prgregset_t, proc_stack_f *, void *); 441 const prgregset_t, proc_stack_f *, void *);
427 442
428 /* 443 /*