comparison agent/src/os/linux/libproc.h @ 18041:52b4284cb496

Merge with jdk8u20-b26
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 16:02:50 +0200
parents 89152779163c a07a3a29df67
children
comparison
equal deleted inserted replaced
17606:45d7b2c7029d 18041:52b4284cb496
32 32
33 #if defined(arm) || defined(ppc) 33 #if defined(arm) || defined(ppc)
34 #include "libproc_md.h" 34 #include "libproc_md.h"
35 #endif 35 #endif
36 36
37 #if defined(sparc) || defined(sparcv9) 37 #include <sys/ptrace.h>
38 /*
39 If _LP64 is defined ptrace.h should be taken from /usr/include/asm-sparc64
40 otherwise it should be from /usr/include/asm-sparc
41 These two files define pt_regs structure differently
42 */
43 #ifdef _LP64
44 #include "asm-sparc64/ptrace.h"
45 #else
46 #include "asm-sparc/ptrace.h"
47 #endif
48
49 #endif //sparc or sparcv9
50 38
51 /************************************************************************************ 39 /************************************************************************************
52 40
53 0. This is very minimal subset of Solaris libproc just enough for current application. 41 0. This is very minimal subset of Solaris libproc just enough for current application.
54 Please note that the bulk of the functionality is from proc_service interface. This 42 Please note that the bulk of the functionality is from proc_service interface. This
78 combination of ptrace and /proc calls. 66 combination of ptrace and /proc calls.
79 67
80 *************************************************************************************/ 68 *************************************************************************************/
81 69
82 70
83 #if defined(sparc) || defined(sparcv9) 71 #if defined(sparc) || defined(sparcv9) || defined(ppc64)
84 #define user_regs_struct pt_regs 72 #define user_regs_struct pt_regs
85 #endif 73 #endif
86 74
87 // This C bool type must be int for compatibility with Linux calls and 75 // This C bool type must be int for compatibility with Linux calls and
88 // it would be a mistake to equivalence it to C++ bool on many platforms 76 // it would be a mistake to equivalence it to C++ bool on many platforms