Skip to content
  1. Dec 22, 2022
    • Arnaldo Carvalho de Melo's avatar
      perf python: Fix splitting CC into compiler and options · 09e6f9f9
      Arnaldo Carvalho de Melo authored
      Noticed this build failure on archlinux:base when building with clang:
      
        clang-14: error: optimization flag '-ffat-lto-objects' is not supported [-Werror,-Wignored-optimization-argument]
      
      In tools/perf/util/setup.py we check if clang supports that option, but
      since commit 3cad53a6 ("perf python: Account for multiple words
      in CC") this got broken as in the common case where CC="clang":
      
        >>> cc="clang"
        >>> print(cc.split()[0])
        clang
        >>> option="-ffat-lto-objects"
        >>> print(str(cc.split()[1:]) + option)
        []-ffat-lto-objects
        >>>
      
      And then the Popen will call clang with that bogus option name that in
      turn will not produce the b"unknown argument" or b"is not supported"
      that this function uses to detect if the option is not available and
      thus later on clang will be called with an unknown/unsupported option.
      
      Fix it by looking if really there are options in the provided CC
      variable, and if so override 'cc' with the first token and append the
      options to the 'option' variable.
      
      Fixes: 3cad53a6
      
       ("perf python: Account for multiple words in CC")
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Fangrui Song <maskray@google.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Keeping <john@metanate.com>
      Cc: Khem Raj <raj.khem@gmail.com>
      Cc: Leo Yan <leo.yan@linaro.org>
      Cc: Michael Petlan <mpetlan@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Cc: Nick Desaulniers <ndesaulniers@google.com>
      Cc: Sedat Dilek <sedat.dilek@gmail.com>
      Link: http://lore.kernel.org/lkml/Y6Rq5F5NI0v1QQHM@kernel.org
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      09e6f9f9
    • Arnaldo Carvalho de Melo's avatar
      perf scripting python: Don't be strict at handling libtraceevent enumerations · f257ba9c
      Arnaldo Carvalho de Melo authored
      
      
      The build was failing on archlinux because it has a newer libtraceevent
      that added a new entry to the tep_print_arg_type enum:
      
          19.72 archlinux:base                : FAIL gcc version 12.2.0 (GCC)
          util/scripting-engines/trace-event-python.c: In function ‘define_event_symbols’:
          util/scripting-engines/trace-event-python.c:281:9: error: enumeration value ‘TEP_PRINT_CPUMASK’ not handled in switch [-Werror=switch-enum]
            281 |         switch (args->type) {
                |         ^~~~~~
          cc1: all warnings being treated as errors
      
      Since we build with distros that have different versions of
      libtraceevent and there is no way to easily test if these enum entries
      are available, just disable -Werror=switch-enum for that specific
      object.
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      f257ba9c
    • Hans-Peter Nilsson's avatar
      perf arm64: Simplify mksyscalltbl · 9854e7ad
      Hans-Peter Nilsson authored
      
      
      This patch isn't intended to have any effect on the compiled code.  It
      just removes one level of indirection: calling the *host* compiler to
      build and then run a program that just printf:s the numerical entries of
      the syscall-table.  In other words, the generated syscalls.c changes
      from:
      
      	[46] = "ftruncate",
      to:
      	[__NR3264_ftruncate] = "ftruncate",
      
      The latter is as good as the former to the user of perf, and this can be
      done directly by the shell-script.  The syscalls defined as non-literal
      values (like "#define __NR_ftruncate __NR3264_ftruncate") are trivially
      resolved at compile-time without namespace-leaking and/or collision for
      its sole user, perf/util/syscalltbl.c, that just #includes the generated
      file.  A future "-mabi=32" support would probably have to handle this
      differently, but that is a pre-existing problem not affected by this
      simplification.
      
      Calling the *host* compiler only complicates things and accidentally can
      get a completely wrong set of files and syscall numbers, see earlier
      commits.  Note that the script parameter hostcc is now unused.
      
      At the time of this patch, powerpc (the origin, see comments), and also
      e.g. x86 has moved on, from filtering "gcc -dM -E" output to reading
      separate specific text-file, a table of syscall numbers.  IMHO should
      arm64 consider adopting this.
      
      Signed-off-by: default avatarHans-Peter Nilsson <hp@axis.com>
      
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Reviewed-by: default avatarLeo Yan <leo.yan@linaro.org>
      Tested-by: default avatarLeo Yan <leo.yan@linaro.org>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.garry@huawei.com>
      Cc: Kim Phillips <kim.phillips@arm.com>
      Cc: Leo Yan <leo.yan@linaro.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Will Deacon <will@kernel.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Link: https://lore.kernel.org/r/20201228024159.2BB66203B5@pchp3.se.axis.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      9854e7ad
    • Arnaldo Carvalho de Melo's avatar
      perf build: Remove explicit reference to python 2.x devel files · c3c2e8eb
      Arnaldo Carvalho de Melo authored
      
      
      If the libpython feature test (tools/build/feature/test-libpython.c)
      fails, then the python-devel is missing, it doesn't mattere if it is for
      python2 or 3, remove that explicit 2.x reference.
      
      Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      c3c2e8eb
    • Sandipan Das's avatar
      perf vendor events amd: Add Zen 4 mapping · 5fe089d3
      Sandipan Das authored
      
      
      Add a regular expression in the map file so that appropriate JSON event
      files are used for AMD Zen 4 processors. Restrict the regular expression
      for AMD Zen 3 processors to known model ranges since they also belong to
      Family 19h.
      
      Signed-off-by: default avatarSandipan Das <sandipan.das@amd.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ananth Narayan <ananth.narayan@amd.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Jirka Hladky <jhladky@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ravi Bangoria <ravi.bangoria@amd.com>
      Cc: Stephane Eranian <eranian@google.com>
      Link: https://lore.kernel.org/r/20221214082652.419965-5-sandipan.das@amd.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      5fe089d3
    • Sandipan Das's avatar
      perf vendor events amd: Add Zen 4 metrics · aba4cb3e
      Sandipan Das authored
      
      
      Add metrics taken from Section 2.1.15.2 "Performance Measurement" in
      the Processor Programming Reference (PPR) for AMD Family 19h Model 11h
      Revision B1 processors.
      
      The recommended metrics are sourced from Table 27 "Guidance for Common
      Performance Statistics with Complex Event Selects".
      
      The pipeline utilization metrics are sourced from Table 28 "Guidance
      for Pipeline Utilization Analysis Statistics". These are new to Zen 4
      processors and useful for finding performance bottlenecks by analyzing
      activity at different stages of the pipeline. Metric groups have been
      added for Level 1 and Level 2 analysis.
      
      Signed-off-by: default avatarSandipan Das <sandipan.das@amd.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ananth Narayan <ananth.narayan@amd.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Jirka Hladky <jhladky@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ravi Bangoria <ravi.bangoria@amd.com>
      Cc: Stephane Eranian <eranian@google.com>
      Link: https://lore.kernel.org/r/20221214082652.419965-4-sandipan.das@amd.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      aba4cb3e
    • Sandipan Das's avatar
      perf vendor events amd: Add Zen 4 uncore events · 5b2ca349
      Sandipan Das authored
      
      
      Add uncore events taken from Section 2.1.15.5 "L3 Cache Performance
      Monitor Counter"s and Section 7.1 "Fabric Performance Monitor Counter
      (PMC) Events" in the Processor Programming Reference (PPR) for AMD
      Family 19h Model 11h Revision B1 processors. This constitutes events
      which capture L3 cache activity and data bandwidth for various links
      and interfaces in the Data Fabric.
      
      Signed-off-by: default avatarSandipan Das <sandipan.das@amd.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ananth Narayan <ananth.narayan@amd.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Jirka Hladky <jhladky@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ravi Bangoria <ravi.bangoria@amd.com>
      Cc: Stephane Eranian <eranian@google.com>
      Link: https://lore.kernel.org/r/20221214082652.419965-3-sandipan.das@amd.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      5b2ca349
    • Sandipan Das's avatar
      perf vendor events amd: Add Zen 4 core events · 65844828
      Sandipan Das authored
      
      
      Add core events taken from Section 2.1.15.4 "Core Performance Monitor
      Counters" in the Processor Programming Reference (PPR) for AMD Family
      19h Model 11h Revision B1 processors. This constitutes events which
      capture op dispatch, execution and retirement, branch prediction, L1
      and L2 cache activity, TLB activity, etc.
      
      Signed-off-by: default avatarSandipan Das <sandipan.das@amd.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ananth Narayan <ananth.narayan@amd.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Jirka Hladky <jhladky@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ravi Bangoria <ravi.bangoria@amd.com>
      Cc: Stephane Eranian <eranian@google.com>
      Link: https://lore.kernel.org/r/20221214082652.419965-2-sandipan.das@amd.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      65844828
    • Ian Rogers's avatar
      perf vendor events intel: Refresh westmereex events · 6abaa020
      Ian Rogers authored
      
      
      Update the westmereex events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed. This
      increases consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-24-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      6abaa020
    • Ian Rogers's avatar
      perf vendor events intel: Refresh westmereep-sp events · bcea0838
      Ian Rogers authored
      
      
      Update the westmereep-sp events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed. This
      increases consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-23-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      bcea0838
    • Ian Rogers's avatar
      perf vendor events intel: Refresh westmereep-dp events · 59802074
      Ian Rogers authored
      
      
      Update the westmereep-dp events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged, unused json values are removed and the
      version number bumped to v3 to match the perfmon mapfile.csv. This
      increases consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-22-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      59802074
    • Ian Rogers's avatar
      perf vendor events intel: Refresh tigerlake metrics and events · 69f685e0
      Ian Rogers authored
      
      
      Update the tigerlake metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".  The
      events are updated to version 1.08 and unused json values are
      removed. The formatting changes increase consistency across the json
      files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-21-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      69f685e0
    • Ian Rogers's avatar
      perf vendor events intel: Refresh snowridgex events · 9b424083
      Ian Rogers authored
      
      
      Update the snowridgex events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed and
      descriptions improved. This increases consistency across the json
      files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-20-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      9b424083
    • Ian Rogers's avatar
      perf vendor events intel: Refresh skylakex metrics and events · ecabdc6a
      Ian Rogers authored
      
      
      Update the skylakex metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1". The
      order of metrics varies as TMA metrics are first converted and then
      removed if perfmon versions are found. The events are updated with
      fixes to uncore events and improved descriptions. uncore-other.json
      changes due to events now being sorted. The formatting changes
      increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-19-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      ecabdc6a
    • Ian Rogers's avatar
      perf vendor events intel: Refresh skylake metrics and events · 00ca782e
      Ian Rogers authored
      
      
      Update the skylake metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".  The
      events are unchanged but unused json values are removed. The
      formatting changes increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-18-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      00ca782e
    • Ian Rogers's avatar
      perf vendor events intel: Refresh silvermont events · 1b91a994
      Ian Rogers authored
      
      
      Update the silvermont events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed. This
      increases consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-17-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      1b91a994
    • Ian Rogers's avatar
      perf vendor events intel: Refresh sapphirerapids metrics and events · 400dd489
      Ian Rogers authored
      
      
      Update the sapphirerapids metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1". The
      order of metrics varies as TMA metrics are first converted and then
      removed if perfmon versions are found. The events are updated to 1.09,
      in particular uncore, with fixes to uncore events and improved
      descriptions. The formatting changes increase consistency across the
      json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-16-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      400dd489
    • Ian Rogers's avatar
      perf vendor events intel: Refresh sandybridge metrics and events · 28641ef5
      Ian Rogers authored
      
      
      Update the sandybridge metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".  The
      events are unchanged but unused json values are removed. The
      formatting changes increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-15-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      28641ef5
    • Ian Rogers's avatar
      perf vendor events intel: Refresh nehalemex events · d4e50e51
      Ian Rogers authored
      
      
      Update the nehalemex events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed. This
      increases consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-14-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      d4e50e51
    • Ian Rogers's avatar
      perf vendor events intel: Refresh nehalemep events · 7e353370
      Ian Rogers authored
      
      
      Update the nehalemep events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed. This
      increases consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-13-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      7e353370
    • Ian Rogers's avatar
      perf vendor events intel: Refresh meteorlake events · 5362e4d1
      Ian Rogers authored
      
      
      Update the meteorlake events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but they are sorted and unused json values
      are removed. This increases consistency across the json files. The
      CPUID matching regular expression is updated to match the perfmon one.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-12-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      5362e4d1
    • Ian Rogers's avatar
      perf vendor events intel: Refresh knightslanding events · 2c3fd22b
      Ian Rogers authored
      
      
      Update the knightslanding events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed. This
      increases consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-11-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      2c3fd22b
    • Ian Rogers's avatar
      perf vendor events intel: Refresh jaketown metrics and events · e85af8a6
      Ian Rogers authored
      
      
      Update the jaketown metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".  The
      events are unchanged but unused json values are removed. The
      formatting changes increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-10-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      e85af8a6
    • Ian Rogers's avatar
      perf vendor events intel: Refresh ivytown metrics and events · 8ee37818
      Ian Rogers authored
      
      
      Update the ivytown metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".  The
      events are unchanged but unused json values are removed. The
      formatting changes increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-9-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      8ee37818
    • Ian Rogers's avatar
      perf vendor events intel: Refresh ivybridge metrics and events · d86ac8d7
      Ian Rogers authored
      
      
      Update the ivybridge metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".  The
      events are unchanged but the version number is 23 to match the perfmon
      version. In the events unused json values are removed. The formatting
      changes increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-8-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      d86ac8d7
    • Ian Rogers's avatar
      perf vendor events intel: Refresh icelakex metrics and events · f8e23ad1
      Ian Rogers authored
      
      
      Update the icelakex metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1". The
      order of metrics varies as TMA metrics are first converted and then
      removed if perfmon versions are found. The events are updated to 1.17,
      in particular uncore, with fixes to uncore events and improved
      descriptions. The formatting changes increase consistency across the
      json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-7-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      f8e23ad1
    • Ian Rogers's avatar
      perf vendor events intel: Refresh icelake metrics and events · f8473086
      Ian Rogers authored
      
      
      Update the icelake metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".  The
      events are unchanged but unused json values are removed. The
      formatting changes increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-6-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      f8473086
    • Ian Rogers's avatar
      perf vendor events intel: Refresh haswellx metrics and events · 667433c4
      Ian Rogers authored
      
      
      Update the haswellx metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1". The
      order of metrics varies as TMA metrics are first converted and then
      removed if perfmon versions are found. The events are updated with
      fixes to uncore events and improved descriptions. The formatting
      changes increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-5-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      667433c4
    • Ian Rogers's avatar
      perf vendor events intel: Refresh haswell metrics and events · 87493110
      Ian Rogers authored
      
      
      Update the haswell metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".  The
      events are unchanged but unused json values are removed. The
      formatting changes increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-4-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      87493110
    • Ian Rogers's avatar
      perf vendor events intel: Refresh goldmontplus events · a335420d
      Ian Rogers authored
      
      
      Update the goldmontplus events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed. This
      increases consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-3-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      a335420d
    • Ian Rogers's avatar
      perf vendor events intel: Refresh goldmont events · 387bc79f
      Ian Rogers authored
      
      
      Update the goldmont events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed. This
      increases consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-2-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      387bc79f
    • Ian Rogers's avatar
      perf vendor events intel: Refresh elkhartlake events · 5cebe49c
      Ian Rogers authored
      
      
      Update the elkhartlake events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed. This
      increases consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065510.1621979-1-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      5cebe49c
    • Ian Rogers's avatar
      perf vendor events intel: Refresh cascadelakex metrics and events · 8358b122
      Ian Rogers authored
      
      
      Update the cascadelakex metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1". The
      order of metrics varies as TMA metrics are first converted and then
      removed if perfmon versions are found. The events are updated with
      fixes to uncore events and improved descriptions. The formatting
      changes increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065017.1621020-3-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      8358b122
    • Ian Rogers's avatar
      perf vendor events intel: Refresh broadwellx metrics and events · 5e241aad
      Ian Rogers authored
      
      
      Update the broadwellx metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1". The
      order of metrics varies as TMA metrics are first converted and then
      removed if perfmon versions are found. The events are updated with
      fixes to uncore events and improved descriptions. The formatting
      changes increase consistency across the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065017.1621020-2-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      5e241aad
    • Ian Rogers's avatar
      perf vendor events intel: Refresh broadwellde metrics and events · f6ee944c
      Ian Rogers authored
      
      
      Update the broadwellde metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics vary as tma_false_sharing, MEM_Parallel_Requests and
      MEM_Request_Latency are explicitly dropped from having missing events:
      https://github.com/captain5050/perfmon/blob/main/scripts/create_perf_json.py#L934
      The formulas also differ due to parentheses, use of exponents and
      removal of redundant operations like "* 1".  The events are unchanged
      but unused json values are removed and implicit umasks of 0 are
      dropped. This increases consistency across the json files.
      
      mapfile.csv's version number is set to match that in the perfmon
      repository.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215065017.1621020-1-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      f6ee944c
    • Ian Rogers's avatar
      perf vendor events intel: Refresh broadwell metrics and events · fec57a8e
      Ian Rogers authored
      
      
      Update the broadwell metrics and events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".  The
      events are unchanged but unused json values are removed, implicit
      umasks of 0 are dropped and duplicate short and long descriptions have
      the long one dropped. This increases consistency across the json
      files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215064755.1620246-6-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      fec57a8e
    • Ian Rogers's avatar
      perf vendor events intel: Refresh bonnell events · 6fa91f64
      Ian Rogers authored
      
      
      Update the bonnell events using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The events are unchanged but unused json values are removed and
      implicit umasks of 0 are dropped. This increases consistency across
      the json files.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215064755.1620246-5-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      6fa91f64
    • Ian Rogers's avatar
      perf vendor events intel: Refresh alderlake-n metrics · a5abef62
      Ian Rogers authored
      
      
      Update the alderlake-n metrics using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215064755.1620246-4-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      a5abef62
    • Ian Rogers's avatar
      perf vendor events intel: Refresh alderlake metrics · 266b2ca7
      Ian Rogers authored
      
      
      Update the alderlake metrics using the new tooling from:
      
        https://github.com/intel/perfmon
      
      The metrics are unchanged but the formulas differ due to parentheses,
      use of exponents and removal of redundant operations like "* 1".
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: https://lore.kernel.org/r/20221215064755.1620246-3-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      266b2ca7
    • Ian Rogers's avatar
      perf test pmu-events: Fake PMU metric workaround · ed4c1778
      Ian Rogers authored
      
      
      We test metrics with fake events with fake values. The fake values may
      yield division by zero and so we count both up and down to try to
      avoid this. Unfortunately this isn't sufficient for some metrics and
      so don't fail the test for them.
      
      Add the metric name to debug output.
      
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Caleb Biggers <caleb.biggers@intel.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.g.garry@oracle.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Perry Taylor <perry.taylor@intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
      Link: http://lore.kernel.org/lkml/20221215064755.1620246-2-irogers@google.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      ed4c1778