< prev index next >

src/jdk.hotspot.agent/share/native/libsaproc/ps_core_common.c

Print this page
rev 59104 : imported patch serviceability


   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  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 #include <jni.h> // just include something, or else solaris compiler will complain that this file is empty
  26 
  27 #if defined(LINUX) || defined(__APPLE__)
  28 #include <unistd.h>
  29 #include <fcntl.h>
  30 #include <string.h>
  31 #include <stdlib.h>
  32 #include <stddef.h>
  33 #ifdef LINUX
  34 #include <elf.h>
  35 #include <link.h>
  36 #include "proc_service.h"
  37 #include "salibelf.h"
  38 #endif
  39 #include "libproc_impl.h"
  40 #include "cds.h"
  41 
  42 #ifdef __APPLE__
  43 #include "sun_jvm_hotspot_debugger_amd64_AMD64ThreadContext.h"
  44 #endif
  45 
  46 #ifdef LINUX




   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  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 #if defined(LINUX) || defined(__APPLE__)
  26 #include <unistd.h>
  27 #include <fcntl.h>
  28 #include <string.h>
  29 #include <stdlib.h>
  30 #include <stddef.h>
  31 #ifdef LINUX
  32 #include <elf.h>
  33 #include <link.h>
  34 #include "proc_service.h"
  35 #include "salibelf.h"
  36 #endif
  37 #include "libproc_impl.h"
  38 #include "cds.h"
  39 
  40 #ifdef __APPLE__
  41 #include "sun_jvm_hotspot_debugger_amd64_AMD64ThreadContext.h"
  42 #endif
  43 
  44 #ifdef LINUX


< prev index next >