From 9c3e1f05953f39ea714a22e929a350c53aaee035 Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Fri, 16 Apr 2010 12:42:38 +0000 Subject: [PATCH] - fix the mpstat output on tickless kernel --- sysstat-9.0.6.1-tickless.patch | 16 ++++++++++++++++ sysstat.spec | 7 ++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 sysstat-9.0.6.1-tickless.patch diff --git a/sysstat-9.0.6.1-tickless.patch b/sysstat-9.0.6.1-tickless.patch new file mode 100644 index 0000000..ac2694c --- /dev/null +++ b/sysstat-9.0.6.1-tickless.patch @@ -0,0 +1,16 @@ +diff -up sysstat-9.0.6.1/mpstat.c.pom sysstat-9.0.6.1/mpstat.c +--- sysstat-9.0.6.1/mpstat.c.pom 2009-09-12 20:59:04.000000000 +0200 ++++ sysstat-9.0.6.1/mpstat.c 2010-04-16 14:32:06.000000000 +0200 +@@ -273,9 +273,10 @@ void write_stats_core(int prev, int curr + pc_itv = get_per_cpu_interval(scc, scp); + + if (!pc_itv) { +- /* Current CPU is offline */ ++ /* Current CPU is tickless ++ if the CPU is offline it is omited from /proc/stat */ + printf(" 0.00 0.00 0.00 0.00 0.00 0.00" +- " 0.00 0.00 0.00\n"); ++ " 0.00 0.00 100.00\n"); + } + else { + printf(" %6.2f %6.2f %6.2f %6.2f %6.2f %6.2f" diff --git a/sysstat.spec b/sysstat.spec index 311d570..802fa76 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -1,6 +1,6 @@ Name: sysstat Version: 9.0.6.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The sar and iostat system monitoring commands License: GPLv2+ Group: Applications/System @@ -12,6 +12,7 @@ Patch0: sysstat-9.0.4-init_script.patch Patch1: sysstat-9.0.6-nfs.patch # make init script lsb Patch2: sysstat-9.0.4-init_script_lsb.patch +Patch3: sysstat-9.0.6.1-tickless.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -30,6 +31,7 @@ activity. %patch0 -p1 -b .ii %patch1 -p1 -b .nfs %patch2 -p1 -b .lsb +%patch3 -p1 -b .tl iconv -f windows-1252 -t utf8 CREDITS > CREDITS.aux mv CREDITS.aux CREDITS @@ -81,6 +83,9 @@ rm -rf %{buildroot} %{_localstatedir}/log/sa %changelog +* Fri Apr 16 2010 Ivana Hutarova Varekova - 9.0.6.1-2 +- fix the mpstat output on tickless kernel + * Tue Mar 2 2010 Ivana Hutarova Varekova - 9.0.6.1-1 - update to 9.0.6.1