rpms/procinfo/FC-5 procinfo-18-cpu-steal.patch, NONE, 1.1 procinfo.spec, 1.19, 1.20
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Thu Apr 20 23:29:10 UTC 2006
Author: kzak
Update of /cvs/dist/rpms/procinfo/FC-5
In directory cvs.devel.redhat.com:/tmp/cvs-serv20037
Modified Files:
procinfo.spec
Added Files:
procinfo-18-cpu-steal.patch
Log Message:
add steal time
procinfo-18-cpu-steal.patch:
procinfo.8 | 4 ++++
procinfo.c | 5 +++++
procinfo.h | 2 +-
3 files changed, 10 insertions(+), 1 deletion(-)
--- NEW FILE procinfo-18-cpu-steal.patch ---
--- procinfo-18/procinfo.h.steal 2006-04-21 01:09:52.000000000 +0200
+++ procinfo-18/procinfo.h 2006-04-21 01:10:36.000000000 +0200
@@ -81,7 +81,7 @@
unsigned long uptime;
long m_to, m_us, m_fr, m_sh, m_bu, m_ca;
long s_to, s_us, s_fr;
- unsigned long cpu_user, cpu_nice, cpu_sys, cpu_idle;
+ unsigned long cpu_user, cpu_nice, cpu_sys, cpu_idle, cpu_steal;
unsigned long cpu_iowait, cpu_irq, cpu_softirq;
unsigned long disk[5];
unsigned long disk_r[5];
--- procinfo-18/procinfo.8.steal 2006-04-21 01:22:58.000000000 +0200
+++ procinfo-18/procinfo.8 2006-04-21 01:24:01.000000000 +0200
@@ -61,6 +61,10 @@
The amount of time spent doing nothing.
.TP
+.BI steal:
+The amount of time spent the virtual CPU waiting for physical CPU.
+
+.TP
.BI uptime:
The time that the system has been up. The above four should more or
less add up to this one.
--- procinfo-18/procinfo.c.steal 2006-04-21 01:10:58.000000000 +0200
+++ procinfo-18/procinfo.c 2006-04-21 01:22:25.000000000 +0200
@@ -252,6 +252,8 @@
new.cpu_iowait = VAL;
new.cpu_irq = VAL;
new.cpu_softirq = VAL;
+ new.cpu_steal = VAL;
+
/*
* according to bug #1959, sometimes the cpu_idle
* seems to go backwards(!) on SMP boxes. This may
@@ -400,6 +402,9 @@
else
putchar ('\n');
+ printf ("steal : %s %s\n",
+ hms (bDIFF (cpu_steal)), perc (bDIFF (cpu_steal), elapsed, nr_cpus));
+
printf ("uptime: %s context :%9lu", hms (new.uptime),
bDIFF (ctxt));
if (new.syscalls) /* If we have this, we can use the old interrupts spot. */
Index: procinfo.spec
===================================================================
RCS file: /cvs/dist/rpms/procinfo/FC-5/procinfo.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- procinfo.spec 11 Feb 2006 05:16:29 -0000 1.19
+++ procinfo.spec 20 Apr 2006 23:29:06 -0000 1.20
@@ -1,7 +1,7 @@
Summary: A tool for gathering and displaying system information.
Name: procinfo
Version: 18
-Release: 18.2.1
+Release: 18.2.2
License: GPL
Group: Applications/System
Source: ftp://ftp.cistron.nl/pub/people/svm/%{name}-%{version}.tar.bz2
@@ -13,6 +13,7 @@
Patch8: procinfo-18-mharris-use-sysconf.patch
Patch9: procinfo-18-maxdev.patch
Patch10: procinfo-18-ranges.patch
+Patch11: procinfo-18-cpu-steal.patch
Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: libtermcap-devel
@@ -35,6 +36,7 @@
%patch8 -p1 -b .mharris-use-sysconf
%patch9 -p1 -b .maxdev
%patch10 -p1 -b .ranges
+%patch11 -p1 -b .steal
%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LDFLAGS=
@@ -59,6 +61,9 @@
%{_mandir}/man8/socklist.8*
%changelog
+* Fri Apr 21 2006 Karel Zak <kzak at redhat.com> - 18-18.2.2
+- fix #185300 - cpu steal time support
+
* Fri Feb 10 2006 Jesse Keating <jkeating at redhat.com> - 18-18.2.1
- bump again for double-long bug on ppc(64)
More information about the fedora-cvs-commits
mailing list