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 "precompiled.hpp" 26 #include "jvm.h" 27 #include "memory/allocation.inline.hpp" 28 #include "os_linux.inline.hpp" 29 #include "runtime/os.hpp" 30 #include "runtime/os_perf.hpp" 31 32 #ifdef TARGET_ARCH_aarch32 33 # include "vm_version_ext_aarch32.hpp" 34 #endif 35 #ifdef TARGET_ARCH_x86 36 # include "vm_version_ext_x86.hpp" 37 #endif 38 #ifdef TARGET_ARCH_sparc 39 # include "vm_version_ext_sparc.hpp" 40 #endif 41 #ifdef TARGET_ARCH_zero 42 # include "vm_version_ext_zero.hpp" 43 #endif 44 #ifdef TARGET_ARCH_arm 45 # include "vm_version_ext_arm.hpp" 46 #endif 47 #ifdef TARGET_ARCH_ppc 48 # include "vm_version_ext_ppc.hpp" 49 #endif 50 51 #include <stdio.h> 52 #include <stdarg.h> 53 #include <unistd.h> 54 #include <errno.h> 55 #include <string.h> 56 #include <sys/resource.h> 57 #include <sys/types.h> 58 #include <sys/stat.h> 59 #include <dirent.h> 60 #include <stdlib.h> 61 #include <dlfcn.h> 62 #include <pthread.h> 63 #include <limits.h> 64 #include <ifaddrs.h> 65 #include <fcntl.h> 66 67 /** 68 /proc/[number]/stat | 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 "precompiled.hpp" 26 #include "jvm.h" 27 #include "memory/allocation.inline.hpp" 28 #include "os_linux.inline.hpp" 29 #include "runtime/os.hpp" 30 #include "runtime/os_perf.hpp" 31 32 #ifdef TARGET_ARCH_x86 33 # include "vm_version_ext_x86.hpp" 34 #endif 35 #ifdef TARGET_ARCH_sparc 36 # include "vm_version_ext_sparc.hpp" 37 #endif 38 #ifdef TARGET_ARCH_zero 39 # include "vm_version_ext_zero.hpp" 40 #endif 41 #ifdef TARGET_ARCH_arm 42 # include "vm_version_ext_arm.hpp" 43 #endif 44 #ifdef TARGET_ARCH_ppc 45 # include "vm_version_ext_ppc.hpp" 46 #endif 47 #ifdef TARGET_ARCH_aarch64 48 # include "vm_version_ext_aarch64.hpp" 49 #endif 50 51 #include <stdio.h> 52 #include <stdarg.h> 53 #include <unistd.h> 54 #include <errno.h> 55 #include <string.h> 56 #include <sys/resource.h> 57 #include <sys/types.h> 58 #include <sys/stat.h> 59 #include <dirent.h> 60 #include <stdlib.h> 61 #include <dlfcn.h> 62 #include <pthread.h> 63 #include <limits.h> 64 #include <ifaddrs.h> 65 #include <fcntl.h> 66 67 /** 68 /proc/[number]/stat |