perf jevents: Fix period for Intel fixed counters
authorAndi Kleen <ak@linux.intel.com>
Fri, 27 Sep 2019 23:35:45 +0000 (16:35 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Sep 2019 20:29:53 +0000 (17:29 -0300)
commit6bdfd9f118bd59cf0f85d3bf4b72b586adea17c1
tree34076c8d1ff4e612c08362212003095d89c9aab6
parente98df280bc2a499fd41d7f9e2d6733884de69902
perf jevents: Fix period for Intel fixed counters

The Intel fixed counters use a special table to override the JSON
information.

During this override the period information from the JSON file got
dropped, which results in inst_retired.any and similar running with
frequency mode instead of a period.

Just specify the expected period in the table.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lore.kernel.org/lkml/20190927233546.11533-2-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/pmu-events/jevents.c