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 Thu Jul 16 15:07:34 2015
--- new/src/os/aix/vm/os_aix.cpp Thu Jul 16 15:07:33 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,1680 ----
} else {
st->print_cr(" (no more information available)");
}
}
+ // Get a string for the cpuinfo that is a summary of the cpu type
+ // This looks good
+ 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) {
// cpu
st->print("CPU:");
st->print("total %d", os::processor_count());
// It's not safe to query number of active processors after crash
src/os/aix/vm/os_aix.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File