< prev index next >

src/jdk.hotspot.agent/linux/native/libsaproc/libproc.h

Print this page
rev 59104 : imported patch serviceability


  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef _LIBPROC_H_
  26 #define _LIBPROC_H_
  27 
  28 #include <jni.h>
  29 #include <unistd.h>
  30 #include <stdint.h>
  31 
  32 #include <sys/procfs.h>
  33 #include <sys/ptrace.h>
  34 
  35 
  36 #if defined(sparc) || defined(sparcv9) || defined(ppc64) || defined(ppc64le)
  37 #include <asm/ptrace.h>
  38 #define user_regs_struct  pt_regs
  39 #endif
  40 #if defined(aarch64) || defined(arm64)
  41 #include <asm/ptrace.h>
  42 #define user_regs_struct user_pt_regs
  43 #elif defined(arm)
  44 #include <asm/ptrace.h>
  45 #define user_regs_struct  pt_regs
  46 #endif
  47 
  48 // This C bool type must be int for compatibility with Linux calls and
  49 // it would be a mistake to equivalence it to C++ bool on many platforms
  50 #ifndef __cplusplus
  51 typedef int bool;
  52 #define true  1
  53 #define false 0
  54 #endif
  55 
  56 struct ps_prochandle;




  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef _LIBPROC_H_
  26 #define _LIBPROC_H_
  27 
  28 #include <jni.h>
  29 #include <unistd.h>
  30 #include <stdint.h>
  31 
  32 #include <sys/procfs.h>
  33 #include <sys/ptrace.h>
  34 
  35 
  36 #if defined(ppc64) || defined(ppc64le)
  37 #include <asm/ptrace.h>
  38 #define user_regs_struct  pt_regs
  39 #endif
  40 #if defined(aarch64) || defined(arm64)
  41 #include <asm/ptrace.h>
  42 #define user_regs_struct user_pt_regs
  43 #elif defined(arm)
  44 #include <asm/ptrace.h>
  45 #define user_regs_struct  pt_regs
  46 #endif
  47 
  48 // This C bool type must be int for compatibility with Linux calls and
  49 // it would be a mistake to equivalence it to C++ bool on many platforms
  50 #ifndef __cplusplus
  51 typedef int bool;
  52 #define true  1
  53 #define false 0
  54 #endif
  55 
  56 struct ps_prochandle;


< prev index next >