From owner-freebsd-performance@freebsd.org Sat Aug 15 01:53:04 2015 Return-Path: Delivered-To: freebsd-performance@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 321169B7EBE for ; Sat, 15 Aug 2015 01:53:04 +0000 (UTC) (envelope-from stas@freebsd.org) Received: from mx0.deglitch.com (backbone.deglitch.com [78.110.53.255]) by mx1.freebsd.org (Postfix) with ESMTP id EAB54168E for ; Sat, 15 Aug 2015 01:53:03 +0000 (UTC) (envelope-from stas@freebsd.org) Received: from [172.27.139.52] (unknown [199.201.64.129]) by mx0.deglitch.com (Postfix) with ESMTPSA id BFC918FC2D; Sat, 15 Aug 2015 05:52:52 +0400 (MSK) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: pmcstat profiles kernel code? From: Stanislav Sedov In-Reply-To: Date: Fri, 14 Aug 2015 18:51:04 -0700 Cc: freebsd-performance@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: References: To: Sai Prajeeth X-Mailer: Apple Mail (2.2102) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Aug 2015 01:53:04 -0000 > On Jun 12, 2015, at 3:58 AM, Sai Prajeeth wrote: > > Hi, > > I am not sure if this is the list that addresses this question but here it > goes. I would like to count hardware events such as instructions retired / > unhalted-core-cycles for all the systems for BOTH OS and APPLICATION. I am > aware that pmcstat has a system wide monitoring mode that counts events > across all the CPUs for all processes. I want to know whether the > statistics for kernel code are collected as well ? (which I dont think so). > Yes, system wide pmcstat collects counters for the entire system, both kernel and userland processes. Generally, you should see kernel functions show up in pmcstat running in a system wide top mode. -- Stanislav Sedov ST4096-RIPE