perf jevents: Fix Intel JSON fixed counter conversions
authorAndi Kleen <ak@linux.intel.com>
Wed, 5 Oct 2016 19:47:12 +0000 (12:47 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 5 Oct 2016 21:41:06 +0000 (18:41 -0300)
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

index 79c2133bc5349f14f496391045e743deed340a5d..41611d7f9873c4d4168a33bc878df69b7ca073b9 100644 (file)
@@ -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},