src/hotspot/os/aix/libperfstat_aix.hpp
changeset 48822 8a9808a9dd6b
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
equal deleted inserted replaced
48821:8250a10cf60f 48822:8a9808a9dd6b
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2016 SAP SE. All rights reserved.
     2  * Copyright (c) 2012, 2018 SAP SE. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   940     char description[IDENTIFIER_LENGTH];  // processor description (type/official name)
   940     char description[IDENTIFIER_LENGTH];  // processor description (type/official name)
   941     u_longlong_t processorHZ;             // processor speed in Hz
   941     u_longlong_t processorHZ;             // processor speed in Hz
   942     int ncpus;                            // number of active logical processors
   942     int ncpus;                            // number of active logical processors
   943     double loadavg[3];                    // (1<<SBITS) times the average number of runnables processes during the last 1, 5 and 15 minutes.
   943     double loadavg[3];                    // (1<<SBITS) times the average number of runnables processes during the last 1, 5 and 15 minutes.
   944                                           // To calculate the load average, divide the numbers by (1<<SBITS). SBITS is defined in <sys/proc.h>.
   944                                           // To calculate the load average, divide the numbers by (1<<SBITS). SBITS is defined in <sys/proc.h>.
   945     char version[20];                     // processor version from _system_configuration (sys/systemcfg.h)
       
   946     unsigned long long user_clock_ticks;  // raw total number of clock ticks spent in user mode
   945     unsigned long long user_clock_ticks;  // raw total number of clock ticks spent in user mode
   947     unsigned long long sys_clock_ticks;   // raw total number of clock ticks spent in system mode
   946     unsigned long long sys_clock_ticks;   // raw total number of clock ticks spent in system mode
   948     unsigned long long idle_clock_ticks;  // raw total number of clock ticks spent idle
   947     unsigned long long idle_clock_ticks;  // raw total number of clock ticks spent idle
   949     unsigned long long wait_clock_ticks;  // raw total number of clock ticks spent waiting for I/O
   948     unsigned long long wait_clock_ticks;  // raw total number of clock ticks spent waiting for I/O
   950   };
   949   };
   963   };
   962   };
   964 
   963 
   965   static bool get_partitioninfo(partitioninfo_t* ppi);
   964   static bool get_partitioninfo(partitioninfo_t* ppi);
   966   static bool get_cpuinfo(cpuinfo_t* pci);
   965   static bool get_cpuinfo(cpuinfo_t* pci);
   967   static bool get_wparinfo(wparinfo_t* pwi);
   966   static bool get_wparinfo(wparinfo_t* pwi);
   968 
       
   969 };
   967 };
   970 
   968 
   971 #endif // OS_AIX_VM_LIBPERFSTAT_AIX_HPP
   969 #endif // OS_AIX_VM_LIBPERFSTAT_AIX_HPP