From owner-freebsd-current@FreeBSD.ORG Fri Jul 29 03:11:07 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.ORG Delivered-To: freebsd-current@FreeBSD.ORG Received: by hub.freebsd.org (Postfix, from userid 729) id C2FD616A41F; Fri, 29 Jul 2005 03:11:07 +0000 (GMT) X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: Martin Cracauer In-Reply-To: Message from Martin Cracauer of "Wed, 27 Jul 2005 11:00:04 -0400." <20050727110003.A29939@cons.org> Mime-Version: 1.0 Content-Type: text/plain Message-Id: <20050729031107.C2FD616A41F@hub.freebsd.org> Date: Fri, 29 Jul 2005 03:11:07 +0000 (GMT) From: jkoshy@FreeBSD.ORG (Joseph Koshy) Cc: Joseph Koshy , freebsd-current@FreeBSD.ORG Subject: Re: PMC (performance counters) problems - kernel panic in 6-beta1 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: Fri, 29 Jul 2005 03:11:07 -0000 > Another question, what is the difference of -s versus -S and -p versus > -P, respectively? -S and -P turn on sampling. -S does 'whole system' sampling. -P is process specific (i.e., the counters only count when the target process(es) are running). So: # pmcstat -S instructions -O /tmp/foo.out will collect samples. # pmcstat -g -R /tmp/foo.out will convert the sample log to gprof(1) compatible 'gmon.out' files. Sampling on the AMD64 requires a patch to current [I'll commit it shortly]. > Thanks for great work. Thanks. Regards, Koshy