src/os/aix/vm/os_aix.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/os/aix/vm/os_aix.cpp	Fri Jul 17 15:15:09 2015
--- new/src/os/aix/vm/os_aix.cpp	Fri Jul 17 15:15:08 2015

*** 1548,1557 **** --- 1548,1564 ---- void os::print_dll_info(outputStream *st) { st->print_cr("Dynamic libraries:"); LoadedLibraries::print(st); } + void os::get_summary_os_info(char* buf, size_t buflen) { + // There might be something more readable than uname results for AIX. + struct utsname name; + uname(&name); + snprintf(buf, buflen, "%s %s", name.release, name.version); + } + void os::print_os_info(outputStream* st) { st->print("OS:"); st->print("uname:"); struct utsname name;
*** 1652,1661 **** --- 1659,1679 ---- } else { st->print_cr(" (no more information available)"); } } + // Get a string for the cpuinfo that is a summary of the cpu type + void os::get_summary_cpu_info(char* buf, size_t buflen) { + // This looks good + os::Aix::cpuinfo_t ci; + if (os::Aix::get_cpuinfo(&ci)) { + strncpy(buf, ci.version, buflen); + } else { + strncpy(buf, "AIX", buflen); + } + } + void os::pd_print_cpu_info(outputStream* st, char* buf, size_t buflen) { } void os::print_siginfo(outputStream* st, void* siginfo) { // Use common posix version.

src/os/aix/vm/os_aix.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File