From owner-freebsd-current@FreeBSD.ORG Mon Sep 27 15:37:07 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 4A5AE106566B for ; Mon, 27 Sep 2010 15:37:07 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout2.yahoo.com (mrout2.yahoo.com [216.145.54.172]) by mx1.freebsd.org (Postfix) with ESMTP id 3519B8FC08 for ; Mon, 27 Sep 2010 15:37:06 +0000 (UTC) Received: from [127.0.0.1] (proxy8.corp.yahoo.com [216.145.48.13]) by mrout2.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id o8RFQ1AW094341 for ; Mon, 27 Sep 2010 08:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=yahoo-inc.com; s=cobra; t=1285601161; bh=Mw9Bvg9uiqTv8TXv7DOK2tqpXPRKFb1Gp5OtVxgRDug=; h=Subject:From:Reply-To:To:Content-Type:Date:Message-ID: Mime-Version:Content-Transfer-Encoding; b=G4YE5SK67fE9UuCUWXJoQiWuD8gRjyUpIRqVGvMY0ZDUBriRch138f5f+2HEbcik2 w/ehGztjZOm3Qc1Pk8yEOPoy+5+6bHIIbJ+rveIPKY643eBrjDHlTbABlZ95bXz73H iyUu0vD52NOvuLU8R3/7pzjcCkWu0dswvAABoIx0= From: Sean Bruno To: "current@freebsd.org" Content-Type: text/plain; charset="UTF-8" Date: Mon, 27 Sep 2010 08:26:01 -0700 Message-ID: <1285601161.7245.7.camel@home-yahoo> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Content-Transfer-Encoding: 7bit Cc: Subject: MAXCPU preparations X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sbruno@freebsd.org 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 15:37:07 -0000 Does this look like an appropriate modification to libmemstat? Sean ==== //depot/yahoo/ybsd_7/src/lib/libmemstat/memstat.h#4 - /home/seanbru/ybsd_7/src/lib/libmemstat/memstat.h ==== @@ -28,12 +28,13 @@ #ifndef _MEMSTAT_H_ #define _MEMSTAT_H_ +#include /* * Number of CPU slots in library-internal data structures. This should be * at least the value of MAXCPU from param.h. */ -#define MEMSTAT_MAXCPU 64 +#define MEMSTAT_MAXCPU MAXCPU /* defined in sys/${ARCH}/include/param.h */ /* * Amount of caller data to maintain for each caller data slot. Applications