WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [Xen-changelog] Patch linux so that /proc/stat shows all

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: [Xen-changelog] Patch linux so that /proc/stat shows all -- not just online -- CPUs.
From: Muli Ben-Yehuda <muli@xxxxxxxxxx>
Date: Mon, 22 May 2006 23:58:32 -0400
Delivery-date: Mon, 22 May 2006 20:59:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E1FiFux-0005Xq-6d@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <E1FiFux-0005Xq-6d@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
On Mon, May 22, 2006 at 07:18:14PM +0000, Xen patchbot-unstable wrote:
> # HG changeset patch
> # User ack@xxxxxxxxxxxxxxxxxxxxxxx
> # Node ID c6da0c5b03ffec5ce4130aeba90a49f218772622
> # Parent  dec7f819293c11f88281aa0fe408a10f8c1345ce
> Patch linux so that /proc/stat shows all -- not just online -- CPUs.
> This way, tools such as TOP don't freak out when CPUs are hotplugged.
> ---
>  patches/linux-2.6.16.13/xen-hotplug.patch |    9 +++++++++
>  1 files changed, 9 insertions(+)
> 
> diff -r dec7f819293c -r c6da0c5b03ff patches/linux-2.6.16.13/xen-hotplug.patch
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/patches/linux-2.6.16.13/xen-hotplug.patch       Mon May 22 15:42:54 
> 2006 +0100
> @@ -0,0 +1,11 @@
> +--- ../pristine-linux-2.6.16.13/fs/proc/proc_misc.c  2006-05-02 
> 22:38:44.000000000 +0100
> ++++ ./fs/proc/proc_misc.c    2006-05-22 15:29:34.000000000 +0100
> +@@ -433,7 +433,7 @@ static int show_stat(struct seq_file *p,
> +             (unsigned long long)cputime64_to_clock_t(irq),
> +             (unsigned long long)cputime64_to_clock_t(softirq),
> +             (unsigned long long)cputime64_to_clock_t(steal));
> +-    for_each_online_cpu(i) {
> ++    for_each_cpu(i) {
> + 
> +             /* Copy values here to work around gcc-2.95.3, gcc-2.96 */
> +             user = kstat_cpu(i).cpustat.user;

This doesn't appear to be Xen specific at all - has it been sent
upstream?

Cheers,
Muli

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: [Xen-changelog] Patch linux so that /proc/stat shows all -- not just online -- CPUs., Muli Ben-Yehuda <=