blob: aa5d212f60110cb12667b9146c572a03c9b36063 [file] [log] [blame] [raw]
/* Do not edit this file. It was automatically generated. */
#ifndef HEADER_AixProcessList
#define HEADER_AixProcessList
/*
htop - AixProcessList.h
(C) 2014 Hisham H. Muhammad
(C) 2018 Calvin Buckley
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
#ifndef __PASE__
#else
#endif
#ifndef __PASE__
#include <libperfstat.h>
#endif
// publically consumed
typedef struct CPUData_ {
// per libperfstat.h, ticks
unsigned long long utime;
unsigned long long stime;
unsigned long long itime;
unsigned long long wtime;
} CPUData;
typedef struct AixProcessList_ {
ProcessList super;
CPUData* cpus;
#ifndef __PASE__a
perfstat_cpu_t* ps_cpus;
#endif
} AixProcessList;
#ifndef Process_isKernelThread
#define Process_isKernelThread(_process) (_process->kernel == 1)
#endif
#ifndef Process_isUserlandThread
// XXX
#define Process_isUserlandThread(_process) (false)
#endif
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId);
void ProcessList_delete(ProcessList* this);
void ProcessList_goThroughEntries(ProcessList* super);
#endif