From owner-freebsd-current@FreeBSD.ORG Mon Sep 27 16:04:05 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 516F9106566B; Mon, 27 Sep 2010 16:04:05 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id ECD178FC14; Mon, 27 Sep 2010 16:04:04 +0000 (UTC) Received: by gwb15 with SMTP id 15so1951591gwb.13 for ; Mon, 27 Sep 2010 09:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=/UDfWqZrCbMykP+i7UEvA+b8kew2fgbjQkIb0nH5OSo=; b=NVxrq6xnJcYZmKYOf9alZtgAoRdKb7rymSV6oQTGnER9dqI22rTjP4gxMY300OyTUM Q3HWltkhkDN9M/qh5kp1dic74sxVC2K9oCu1aC52A0zhjlGnXCAvHxgRsJA/W6pyn29M XlhWi+3NvdZ9cXVBPSJWQGzxK05Mchwl+AdP4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=UbEikpULfRDIZXr1URmtGPNtkVp5aXEjqKkoSj3y8vzQKPWUjTv69NkB8nuyIa522+ GAfUGarAmOd6+umcbFdEGmOwH9lt1RTseITPHJCHBfyB3JWRCbevJOvq9lpjDEVVkSQj axZkkYExoDmqehqteZ/91mkzSUZo238M7E5Sk= MIME-Version: 1.0 Received: by 10.151.47.10 with SMTP id z10mr7684003ybj.377.1285602059965; Mon, 27 Sep 2010 08:40:59 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.151.15.4 with HTTP; Mon, 27 Sep 2010 08:40:59 -0700 (PDT) In-Reply-To: <1285601161.7245.7.camel@home-yahoo> References: <1285601161.7245.7.camel@home-yahoo> Date: Mon, 27 Sep 2010 17:40:59 +0200 X-Google-Sender-Auth: ZUaG_uZWEnaOnauqbCk6eC4hzOI Message-ID: From: Attilio Rao To: sbruno@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "current@freebsd.org" Subject: Re: MAXCPU preparations X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2010 16:04:05 -0000 2010/9/27 Sean Bruno : > Does this look like an appropriate modification to libmemstat? > > Sean > > > =3D=3D=3D=3D //depot/yahoo/ybsd_7/src/lib/libmemstat/memstat.h#4 > - /home/seanbru/ybsd_7/src/lib/libmemstat/memstat.h =3D=3D=3D=3D > @@ -28,12 +28,13 @@ > > =C2=A0#ifndef _MEMSTAT_H_ > =C2=A0#define =C2=A0 =C2=A0 =C2=A0 =C2=A0_MEMSTAT_H_ > +#include > > =C2=A0/* > =C2=A0* Number of CPU slots in library-internal data structures. =C2=A0Th= is > should be > =C2=A0* at least the value of MAXCPU from param.h. > =C2=A0*/ > -#define =C2=A0 =C2=A0 =C2=A0 =C2=A0MEMSTAT_MAXCPU =C2=A064 > +#define =C2=A0 =C2=A0 =C2=A0 =C2=A0MEMSTAT_MAXCPU =C2=A0MAXCPU /* define= d in > sys/${ARCH}/include/param.h */ > > =C2=A0/* > =C2=A0* Amount of caller data to maintain for each caller data slot. > Applications I would not include sys/param and would axe out the comment. Just make sure anything compiles with these modifies eventually. Thanks, Attilio --=20 Peace can only be achieved by understanding - A. Einstein