From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 12 11:19:17 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 44B56D95 for ; Fri, 12 Jun 2015 11:19:17 +0000 (UTC) (envelope-from csprajeeth@gmail.com) Received: from mail-yh0-x234.google.com (mail-yh0-x234.google.com [IPv6:2607:f8b0:4002:c01::234]) (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 05FA0119E for ; Fri, 12 Jun 2015 11:19:17 +0000 (UTC) (envelope-from csprajeeth@gmail.com) Received: by yhak3 with SMTP id k3so12605358yha.2 for ; Fri, 12 Jun 2015 04:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ow19Ft6ww46jBgS2LtOmZEI6zmQ1KGDyvfk/IVFRV7o=; b=VC3qI3kPJAHvaalEez9yZQFxkozJU//Pbx1vxVdu9wJ9ZqIqItS8L5CTQx1SVvw9ou c0YU9d/S7DoRu/ZQzpasW2bb8ahfE1D6CAHG23bSSHpx6tno7UGTblv1At5f1K7qEar9 T+qgTSKtbunag2wbsOK1fEDqM1WxAMEDQZOp4nO2YRFJB/UZ6bZOLq1WiOcQm295Bhkf nlrZDnjjqiXdXk98BPXoC19ICc8txLauv6751/s9w783jOyBKUkTBEyZQE8sc78AZyAX 0nVa5bCHLgLBC0E/yXtxfAnQ4BTp5jdGaE1oXxtXrEj5QPfj4MwVnojpwF8fvsfAiJWh aNmg== MIME-Version: 1.0 X-Received: by 10.13.245.69 with SMTP id e66mr17657474ywf.176.1434107956057; Fri, 12 Jun 2015 04:19:16 -0700 (PDT) Received: by 10.37.194.134 with HTTP; Fri, 12 Jun 2015 04:19:16 -0700 (PDT) Date: Fri, 12 Jun 2015 16:49:16 +0530 Message-ID: Subject: pmcstat profiles OS code? From: Sai Prajeeth To: 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 11:19:17 -0000 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!