diff options
author | Daniel Lange <DLange@git.local> | 2021-09-21 08:35:19 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-09-21 08:35:19 +0200 |
commit | 69f439eff387a6ecb52734e400b297a3c85f2285 (patch) | |
tree | 2a988b7868b749654796183ba70b4272965da1bf /solaris/SolarisProcessList.h | |
parent | c55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (diff) | |
download | debian_htop-69f439eff387a6ecb52734e400b297a3c85f2285.tar.gz debian_htop-69f439eff387a6ecb52734e400b297a3c85f2285.tar.bz2 debian_htop-69f439eff387a6ecb52734e400b297a3c85f2285.zip |
New upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'solaris/SolarisProcessList.h')
-rw-r--r-- | solaris/SolarisProcessList.h | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/solaris/SolarisProcessList.h b/solaris/SolarisProcessList.h index 78362b6..f653b7c 100644 --- a/solaris/SolarisProcessList.h +++ b/solaris/SolarisProcessList.h @@ -8,14 +8,11 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#define MAXCMDLINE 255 - -#define GZONE "global " -#define UZONE "unknown " - -#include "zfs/ZfsArcStats.h" +#include "config.h" // IWYU pragma: keep #include <kstat.h> +#include <stdbool.h> +#include <stdint.h> #include <sys/param.h> #include <sys/uio.h> #include <sys/resource.h> @@ -23,6 +20,15 @@ in the source distribution for its full text. #include <sys/sysinfo.h> #include <sys/swap.h> +#include "Hashtable.h" +#include "ProcessList.h" +#include "UsersTable.h" + +#include "solaris/SolarisProcess.h" + +#include "zfs/ZfsArcStats.h" + + #define ZONE_ERRMSGLEN 1024 extern char zone_errmsg[ZONE_ERRMSGLEN]; @@ -38,6 +44,7 @@ typedef struct CPUData_ { uint64_t lkrnl; uint64_t lintr; uint64_t lidle; + bool online; } CPUData; typedef struct SolarisProcessList_ { @@ -47,20 +54,12 @@ typedef struct SolarisProcessList_ { ZfsArcStats zfs; } SolarisProcessList; -char* SolarisProcessList_readZoneName(kstat_ctl_t* kd, SolarisProcess* sproc); - -ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, uid_t userId); +ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* dynamicColumns, Hashtable* pidMatchList, uid_t userId); void ProcessList_delete(ProcessList* pl); -/* NOTE: the following is a callback function of type proc_walk_f - * and MUST conform to the appropriate definition in order - * to work. See libproc(3LIB) on a Solaris or Illumos - * system for more info. - */ - -int SolarisProcessList_walkproc(psinfo_t* _psinfo, lwpsinfo_t* _lwpsinfo, void* listptr); - void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate); +bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id); + #endif |