From owner-freebsd-performance@FreeBSD.ORG Fri Jun 12 10:58:35 2015 Return-Path: Delivered-To: freebsd-performance@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 967B431C for ; Fri, 12 Jun 2015 10:58:35 +0000 (UTC) (envelope-from csprajeeth@gmail.com) Received: from mail-yh0-x22e.google.com (mail-yh0-x22e.google.com [IPv6:2607:f8b0:4002:c01::22e]) (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 57CD31CB9 for ; Fri, 12 Jun 2015 10:58:35 +0000 (UTC) (envelope-from csprajeeth@gmail.com) Received: by yhid80 with SMTP id d80so12497774yhi.1 for ; Fri, 12 Jun 2015 03:58:34 -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=rwVkCHA+uVRDHnU4OUMipk1AXzqGQhwbk98gT7uhisA=; b=C8z1eqfoIK4KGyC1ocQ5GJ/fpaMOPEIlB0kKZMWZuCgOmeS3zxRFhJNKz59T76mlNs g8XDlzLbN4vIMWwPdug30JhWqGXI8fvaS09+0U3+zvzWwk20L33khLjMK60NLIfaQ+aS 9EPUN3uYscr7m+1SCaNCBIBz5ZKXNjQKiUqp9OkphVv+NQ2dhwPK+pXkqXwKtJp+kSNL qzZaUU2Lnj8RMFVzH5y7cZyf1Aha0JPqOpNGEmojutD7CekiLJ95nBtC3n6yEI5IyupT 9Lv7ZJc57P7zv38UJB9QgLwLM+6FP4DUJb/MluWALd+pnXUnwAn9ju+wRQZlFZsX9GtI dlOw== MIME-Version: 1.0 X-Received: by 10.129.35.6 with SMTP id j6mr534789ywj.37.1434106714452; Fri, 12 Jun 2015 03:58:34 -0700 (PDT) Received: by 10.37.194.134 with HTTP; Fri, 12 Jun 2015 03:58:34 -0700 (PDT) Date: Fri, 12 Jun 2015 16:28:34 +0530 Message-ID: Subject: pmcstat profiles kernel code? From: Sai Prajeeth To: freebsd-performance@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Fri, 12 Jun 2015 10:58:35 -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!