Thanks to Drazen Kacar for pointing out that not all processors must be

1999-04-18  Martin Baulig  <martin@home-of-linux.org>

	Thanks to Drazen Kacar for pointing out that not all processors must
	be running all the time under Solaris, so we need to have some flag
	to find out which processors are running.

	* (glibtop_cpu): Added `xcpu_flags' bitmask of running processors.
	* (glibtop_proc_time): Added `xcpu_flags'.
This commit is contained in:
Martin Baulig
1999-04-18 11:47:58 +00:00
committed by Martin Baulig
parent eca34c37d9
commit 1cec9b70a2
6 changed files with 28 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ const char *glibtop_names_cpu[GLIBTOP_MAX_CPU] =
{
"total", "user", "nice", "sys", "idle", "frequency",
"xcpu_total", "xcpu_user", "xcpu_nice", "xcpu_sys",
"xcpu_idle"
"xcpu_idle", "xcpu_flags"
};
const unsigned glibtop_types_cpu[GLIBTOP_MAX_CPU] =
@@ -37,7 +37,7 @@ const unsigned glibtop_types_cpu[GLIBTOP_MAX_CPU] =
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG,
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG, GLIBTOP_TYPE_ULONG
};
const char *glibtop_labels_cpu[GLIBTOP_MAX_CPU] =
@@ -53,6 +53,7 @@ const char *glibtop_labels_cpu[GLIBTOP_MAX_CPU] =
N_ ("SMP CPU Time in User Mode (nice)"),
N_ ("SMP CPU Time in System Mode"),
N_ ("SMP CPU Time in the Idle Task")
N_ ("SMP CPU Flags")
};
const char *glibtop_descriptions_cpu[GLIBTOP_MAX_CPU] =
@@ -68,4 +69,5 @@ const char *glibtop_descriptions_cpu[GLIBTOP_MAX_CPU] =
N_ ("Number of clock ticks the system spent in user mode (nice)"),
N_ ("Number of clock ticks the system spent in system mode"),
N_ ("Number of clock ticks the system spent in the idle task"),
N_ ("SMP CPU Flags")
};

View File

@@ -30,7 +30,7 @@ const char *glibtop_names_proc_time[GLIBTOP_MAX_PROC_TIME] =
{
"start_time", "rtime", "utime", "stime", "cutime", "cstime",
"timeout", "it_real_value", "timeout", "xcpu_utime",
"xcpu_stime"
"xcpu_stime", "xcpu_flags"
};
const unsigned glibtop_types_proc_time[GLIBTOP_MAX_PROC_TIME] =
@@ -38,14 +38,15 @@ const unsigned glibtop_types_proc_time[GLIBTOP_MAX_PROC_TIME] =
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG,
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG
GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG, GLIBTOP_TYPE_LONG
};
const char *glibtop_labels_proc_time[GLIBTOP_MAX_PROC_TIME] =
{
N_ ("Start_Time"), N_ ("RTime"), N_ ("UTime"), N_ ("STime"),
N_ ("CUTime"), N_ ("CSTime"), N_ ("TimeOut"), N_ ("It_Real_Value"),
N_ ("Frequency"), N_ ("XCPU_UTime"), N_ ("XCPU_STime")
N_ ("Frequency"), N_ ("XCPU_UTime"), N_ ("XCPU_STime"),
N_ ("XCPU_Flags")
};
const char *glibtop_descriptions_proc_time[GLIBTOP_MAX_PROC_TIME] =
@@ -62,4 +63,5 @@ const char *glibtop_descriptions_proc_time[GLIBTOP_MAX_PROC_TIME] =
N_ ("Tick frequency"),
N_ ("SMP user-mode CPU time accumulated by process"),
N_ ("SMP kernel-mode CPU time accumulated by process")
N_ ("SMP CPU Flags")
};