From owner-freebsd-questions@FreeBSD.ORG Thu Jun 11 18:13:17 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7E9E1687 for ; Thu, 11 Jun 2015 18:13:17 +0000 (UTC) (envelope-from csprajeeth@gmail.com) Received: from mail-yk0-x241.google.com (mail-yk0-x241.google.com [IPv6:2607:f8b0:4002:c07::241]) (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 40D071AA3 for ; Thu, 11 Jun 2015 18:13:17 +0000 (UTC) (envelope-from csprajeeth@gmail.com) Received: by ykp9 with SMTP id 9so1773799ykp.3 for ; Thu, 11 Jun 2015 11:13: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=lLc5AOCIlGncemA/vjyRgfnQGg+panKNhqsxuvtWbrQ=; b=zdJ+3tSzb4psw9OR8lz96iziLEHk/IOh+P9Y/if4/Caj1xu51nFoxsHktizpZoSC/o NkBEgW/52DME/+narTgSlN2OtHlKU335Gy/s1ol3WY/zVxTbDXwyLh61F7kFJPJcRt5J YW2JEx5LERI733CqLnbyKHudzDuR4jYPYunLxUFD6xxjewDIBh/NhvS6ZJIvb1rMDS8r g0f+2zC4jHpVwSCUmMnVYIMuvi9cpmAoBqfdiA2utwbmDXCaX0bKUWAH/7qOaZnJpoxm Af2md1bSfymEUGWkPB8SY4nWqli+QUCJ9eab0SRbNdiS7bVpV8qdPoDI6djJwqp81COX wQSA== MIME-Version: 1.0 X-Received: by 10.129.146.1 with SMTP id j1mr13621509ywg.59.1434046396406; Thu, 11 Jun 2015 11:13:16 -0700 (PDT) Received: by 10.37.194.134 with HTTP; Thu, 11 Jun 2015 11:13:16 -0700 (PDT) Date: Thu, 11 Jun 2015 23:43:16 +0530 Message-ID: Subject: pmcstat profiles kernel From: Sai Prajeeth To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2015 18:13:17 -0000 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). Thanks!