linux_dsm_epyc7002/tools/perf/pmu-events/arch/x86
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
..
bonnell perf vendor events: Add Bonnell V4 event file 2016-10-17 13:39:47 -03:00
broadwell perf vendor events intel: Update Broadwell events to V22 2018-01-25 06:36:29 -03:00
broadwellde perf vendor events intel: Update BroadwellDE events to V7 2018-01-25 06:37:15 -03:00
broadwellx perf vendor events intel: Update BroadwellX events to V13 2018-01-25 06:36:36 -03:00
goldmont perf vendor events intel: Update Goldmont events to V12 2018-01-25 06:36:40 -03:00
goldmontplus perf vendor events: Add Goldmont Plus V1 event file 2017-10-23 16:30:54 -03:00
haswell perf vendor events intel: Update Haswell events to V27 2018-01-25 06:36:46 -03:00
haswellx perf vendor events intel: Update HaswellX events to V19 2018-01-25 06:36:50 -03:00
ivybridge perf vendor events intel: Update IvyBridge files to V20 2018-01-25 06:37:18 -03:00
ivytown perf vendor events intel: Fix wrong filter_band* values for uncore events 2018-10-11 11:13:23 -03:00
jaketown perf vendor events intel: Fix wrong filter_band* values for uncore events 2018-10-11 11:13:23 -03:00
knightslanding perf vendor events intel: Add uncore events for Xeon Phi (Knights Landing) 2017-02-08 16:38:03 -03:00
nehalemep perf vendor events: Add NehalemEP V2 event file 2016-10-17 13:39:47 -03:00
nehalemex perf vendor events: Add NehalemEX V2 event file 2016-10-17 13:39:47 -03:00
sandybridge perf vendor events: Fix incorrect cmask syntax for some Intel metrics 2017-10-23 16:30:51 -03:00
silvermont perf vendor events intel: Update Silvermont events to V14 2018-01-25 06:37:02 -03:00
skylake perf vendor events intel: Update Skylake events to V36 2018-01-25 06:37:08 -03:00
skylakex perf vendor events intel: Update SkylakeX events to V1.06 2018-01-25 06:37:12 -03:00
westmereep-dp perf vendor events: Add WestmereEP-DP V2 event file 2016-10-17 13:39:47 -03:00
westmereep-sp perf vendor events: Add WestmereEP-SP V2 event file 2016-10-17 13:39:47 -03:00
westmereex perf vendor events: Add WestmereEX V2 event file 2016-10-17 13:39:47 -03:00
mapfile.csv perf vendor events intel: Remove duplicated entry for westmereep-dp in mapfile.csv 2018-05-07 15:23:45 -03:00