linux/tools/perf/pmu-events/arch/x86/ivytown
Jiri Olsa 94aafb74ce perf vendor events intel: Fix wrong filter_band* values for uncore events
Michael reported that he could not stat following event:

  $ perf stat -e unc_p_freq_ge_1200mhz_cycles -a -- ls
  event syntax error: '..e_1200mhz_cycles'
                                    \___ value too big for format, maximum is 255
  Run 'perf list' for a list of valid events

The event is unwrapped into:

  uncore_pcu/event=0xb,filter_band0=1200/

where filter_band0 format says it's one byte only:

  # cat uncore_pcu/format/filter_band0
  config1:0-7

while JSON files specifies bigger number:

  "Filter": "filter_band0=1200",

all the filter_band* formats show 1 byte width:

  # cat uncore_pcu/format/filter_band1
  config1:8-15
  # cat uncore_pcu/format/filter_band2
  config1:16-23
  # cat uncore_pcu/format/filter_band3
  config1:24-31

The reason of the issue is that filter_band* values are supposed to be
in 100Mhz units.. it's stated in the JSON help for the events, like:

  filter_band3=XXX, with XXX in 100Mhz units

This patch divides the filter_band* values by 100, plus there's couple
of changes that actually change the number completely, like:

  -        "Filter": "edge=1,filter_band2=4000",
  +        "Filter": "edge=1,filter_band2=30",

Reported-by: Michael Petlan <mpetlan@redhat.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Andi Kleen <ak@linux.intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20181010080339.GB15790@krava
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-10-11 11:13:23 -03:00
..
cache.json perf vendor events intel: Update IvyTown files to V20 2018-01-25 06:37:21 -03:00
floating-point.json perf vendor events: Add IvyTown V19 event file 2016-10-17 13:39:47 -03:00
frontend.json perf vendor events intel: Update IvyTown events to V20 2018-01-25 06:36:58 -03:00
ivt-metrics.json perf vendor events: Update JSON metrics for IvyTown 2017-10-23 11:20:52 -03:00
memory.json perf vendor events intel: Update IvyTown files to V20 2018-01-25 06:37:21 -03:00
other.json perf vendor events intel: Update IvyTown events to V20 2018-01-25 06:36:58 -03:00
pipeline.json perf vendor events intel: Update IvyTown events to V20 2018-01-25 06:36:58 -03:00
uncore-cache.json perf vendor events intel: Update Intel uncore JSON event files 2017-03-23 11:42:28 -03:00
uncore-interconnect.json perf vendor events intel: Update Intel uncore JSON event files 2017-03-23 11:42:28 -03:00
uncore-memory.json perf vendor events intel: Update Intel uncore JSON event files 2017-03-23 11:42:28 -03:00
uncore-power.json perf vendor events intel: Fix wrong filter_band* values for uncore events 2018-10-11 11:13:23 -03:00
virtual-memory.json perf vendor events intel: Update IvyTown events to V20 2018-01-25 06:36:58 -03:00