]> git.ipfire.org Git - people/arne_f/kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2019 11:43:04 +0000 (12:43 +0100)
commit1862e1188c9dfcc87f4c4e36ef1947d8f83e9eff
tree7b23db91da247db325e012f0948905e452579a8f
parentbbb089eb22cb32fad57869a81b106c4df39ff85b
perf jevents: Fix period for Intel fixed counters

[ Upstream commit 6bdfd9f118bd59cf0f85d3bf4b72b586adea17c1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/pmu-events/jevents.c