From owner-cvs-all Sun Jun 30 12:50:28 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D851437B400; Sun, 30 Jun 2002 12:50:22 -0700 (PDT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4E4243E09; Sun, 30 Jun 2002 12:50:21 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id PAA01515; Sun, 30 Jun 2002 15:50:21 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g5UJnpf20354; Sun, 30 Jun 2002 15:49:51 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) Date: Sun, 30 Jun 2002 15:49:51 -0400 From: Andrew Gallatin To: Luigi Rizzo Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/isa clock.c src/sys/i386/include param.h src/sys/conf options.i386 Message-ID: <20020630154951.A20313@grasshopper.cs.duke.edu> References: <200206300756.g5U7unht089253@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200206300756.g5U7unht089253@freefall.freebsd.org>; from luigi@FreeBSD.org on Sun, Jun 30, 2002 at 12:56:49AM -0700 X-Operating-System: FreeBSD 4.4-RELEASE on an i386 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Luigi Rizzo [luigi@FreeBSD.org] wrote: > luigi 2002/06/30 00:56:49 PDT > > Modified files: (Branch: RELENG_4) > sys/i386/isa clock.c > sys/i386/include param.h > sys/conf options.i386 > Log: > Add one function and one macro to timestamp events in the kernel using > the TSC register and which are just too conveninent not to have them around. > > The macro (defined in sys/i386/include/param.h) is called > > TSTMP(class:4, unit:4, event:8, par:16) > Before adding the TSTMP macro to any MI code, please remember to either implement it on alpha in terms of alpha_rpcc() or to at least add a stub to alpha/include/param.h so that you don't break kernel builds on alpha. Also, a few years back at Duke we did something we called "netlog" which logged what looks like similar information to a network log server via either Myrinet or UDP. The idea was that (at least w/Myrinet) letting the nic DMA a log buffer out of memory was cheap and less likely to perturb results. If you're interested, I could probably dig up the code and a pointer to some text about it (I think it was at least one person's MS thesis). Thanks, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message