From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 12 17:17:05 2015 Return-Path: Delivered-To: freebsd-hackers@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BABBACF2 for ; Fri, 12 Jun 2015 17:17:05 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8444EA3F for ; Fri, 12 Jun 2015 17:17:05 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by igbsb11 with SMTP id sb11so15132215igb.0 for ; Fri, 12 Jun 2015 10:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BxEcco7CKNecoqm+0rROd6jYSh0S/nxYm8kPDfnFwaM=; b=PYjLMW+cVCRO32acvTwZ0DpqzeiYPiT7K8+VEwCoZVTB9X8yEWGX8zhPQzlkMwUgRm 8WOg7XRworGCvxiCRWl7KLT4KrhfFA1uMEzg1AzPoH/1voTVMTq5j2/K6Om8Kr7OsjdY kXF1KNxr/Q1VcigLy82rOD2GfwuBpMPJ1DA+Quvj2W8fmorL9obpM97ErmcbZQ8aJvCx pjbNgHgzzL5+29QRhnI3r7kyc8JMbN58PcpJFn4+1bKm/DX4yFBWH1tR3u7PQfwIZAlN 0RSkpaKdwj4sDV9L+7RS+8lyQSgNb12aRiF0tghH3JFb/xoRBa8IZ6TVK4+t497PnnQN 9Adw== MIME-Version: 1.0 X-Received: by 10.50.108.7 with SMTP id hg7mr5699958igb.37.1434129424947; Fri, 12 Jun 2015 10:17:04 -0700 (PDT) Received: by 10.107.165.16 with HTTP; Fri, 12 Jun 2015 10:17:04 -0700 (PDT) Received: by 10.107.165.16 with HTTP; Fri, 12 Jun 2015 10:17:04 -0700 (PDT) In-Reply-To: References: Date: Fri, 12 Jun 2015 13:17:04 -0400 Message-ID: Subject: Re: pmcstat profiles OS code? From: Ryan Stone To: Sai Prajeeth Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2015 17:17:05 -0000 pmcstat -S will collect data for threads running in the kernel, both for kernel threads like interrupt threads as well as user threads running in kernel context (e.g performing a system call) On Jun 12, 2015 7:19 AM, "Sai Prajeeth" wrote: > Hi, > > 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). > > Thanks! > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >