agent/src/os/linux/libproc.h

changeset 1
2d8a650513c2
parent 0
f90c822e73f8
child 6876
710a3c8b516e
equal deleted inserted replaced
0:f90c822e73f8 1:2d8a650513c2
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24 24
25 /*
26 * This file has been modified by Loongson Technology in 2015. These
27 * modifications are Copyright (c) 2015 Loongson Technology, and are made
28 * available on the same license terms set forth above.
29 */
30
25 #ifndef _LIBPROC_H_ 31 #ifndef _LIBPROC_H_
26 #define _LIBPROC_H_ 32 #define _LIBPROC_H_
27 33
28 #include <jni.h> 34 #include <jni.h>
29 #include <unistd.h> 35 #include <unistd.h>
34 #include "libproc_md.h" 40 #include "libproc_md.h"
35 #endif 41 #endif
36 42
37 #include <sys/ptrace.h> 43 #include <sys/ptrace.h>
38 44
45 #if defined(mips) || defined(mipsel) || defined(mips64) || defined(mips64el)
46 #include <asm/ptrace.h>
47 #endif
39 /************************************************************************************ 48 /************************************************************************************
40 49
41 0. This is very minimal subset of Solaris libproc just enough for current application. 50 0. This is very minimal subset of Solaris libproc just enough for current application.
42 Please note that the bulk of the functionality is from proc_service interface. This 51 Please note that the bulk of the functionality is from proc_service interface. This
43 adds Pgrab__ and some missing stuff. We hide the difference b/w live process and core 52 adds Pgrab__ and some missing stuff. We hide the difference b/w live process and core
67 76
68 *************************************************************************************/ 77 *************************************************************************************/
69 78
70 79
71 #if defined(sparc) || defined(sparcv9) || defined(ppc64) 80 #if defined(sparc) || defined(sparcv9) || defined(ppc64)
81 #define user_regs_struct pt_regs
82 #endif
83
84 #if defined(mips) || defined(mipsel) || defined(mips64) || defined(mips64el)
72 #define user_regs_struct pt_regs 85 #define user_regs_struct pt_regs
73 #endif 86 #endif
74 87
75 // This C bool type must be int for compatibility with Linux calls and 88 // This C bool type must be int for compatibility with Linux calls and
76 // it would be a mistake to equivalence it to C++ bool on many platforms 89 // it would be a mistake to equivalence it to C++ bool on many platforms

mercurial