Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1496902

[tip:perf/urgent] perf jevents: Fix Intel JSON fixed counter conversions

Path csiph.com!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From tip-bot for Andi Kleen <tipbot@zytor.com>
Newsgroups linux.kernel
Subject [tip:perf/urgent] perf jevents: Fix Intel JSON fixed counter conversions
Date Fri, 07 Oct 2016 00:50:01 +0200
Message-ID <sppEd-7qB-23@gated-at.bofh.it> (permalink)
References <sp0mu-6bE-25@gated-at.bofh.it>
X-Original-To linux-tip-commits@vger.kernel.org
Reply-To ak@linux.intel.com, sukadev@linux.vnet.ibm.com, acme@redhat.com, tglx@linutronix.de, jolsa@redhat.com, linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org
Git-Commit-ID 72c6ff2583fba824dc38c0ce87b838631cdb8294
X-Mailer tip-git-log-daemon
Robot-ID <tip-bot.git.kernel.org>
Robot-Unsubscribe Contact <mailto:hpa@kernel.org> to get blacklisted from these emails
MIME-Version 1.0
Content-Transfer-Encoding 8bit
Content-Type text/plain; charset=UTF-8
Content-Disposition inline
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 35
Organization linux.* mail to news gateway
X-Original-Cc tglx@linutronix.de, ak@linux.intel.com, sukadev@linux.vnet.ibm.com, acme@redhat.com, linux-kernel@vger.kernel.org, jolsa@redhat.com, hpa@zytor.com, mingo@kernel.org
X-Original-Date Thu, 6 Oct 2016 15:41:48 -0700
X-Original-Message-ID <tip-72c6ff2583fba824dc38c0ce87b838631cdb8294@git.kernel.org>
X-Original-References <1475696832-9188-4-git-send-email-andi@firstfloor.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1496902

Show key headers only | View raw


Commit-ID:  72c6ff2583fba824dc38c0ce87b838631cdb8294
Gitweb:     http://git.kernel.org/tip/72c6ff2583fba824dc38c0ce87b838631cdb8294
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Wed, 5 Oct 2016 12:47:12 -0700
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Wed, 5 Oct 2016 18:41:06 -0300

perf jevents: Fix Intel JSON fixed counter conversions

Intel fixed counters are special cases in the JSON conversion process
because their decoding differs between perf and the event files.  Add
some missing entries in the conversion table.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1475696832-9188-4-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/pmu-events/jevents.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c
index 79c2133..41611d7 100644
--- a/tools/perf/pmu-events/jevents.c
+++ b/tools/perf/pmu-events/jevents.c
@@ -312,6 +312,8 @@ static struct fixed {
 	const char *event;
 } fixed[] = {
 	{ "inst_retired.any", "event=0xc0" },
+	{ "inst_retired.any_p", "event=0xc0" },
+	{ "cpu_clk_unhalted.ref", "event=0x0,umask=0x03" },
 	{ "cpu_clk_unhalted.thread", "event=0x3c" },
 	{ "cpu_clk_unhalted.thread_any", "event=0x3c,any=1" },
 	{ NULL, NULL},

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Some minor fixes for the perf tools json event code Andi Kleen <andi@firstfloor.org> - 2016-10-05 21:50 +0200
  [PATCH 3/3] perf, tools: Fix Intel fixed counter conversions Andi Kleen <andi@firstfloor.org> - 2016-10-05 21:50 +0200
    [tip:perf/urgent] perf jevents: Fix Intel JSON fixed counter  conversions tip-bot for Andi Kleen <tipbot@zytor.com> - 2016-10-07 00:50 +0200

csiph-web