1. 03 May, 2022 3 commits
    • Zhengjun Xing's avatar
      perf vendor events intel: Update core event list for Sapphirerapids · 9061dffd
      Zhengjun Xing authored
      Update JSON core events for Sapphirerapids to perf.
      
      Based on JSON list v1.01:
      
      https://download.01.org/perfmon/SPR/Reviewed-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Signed-off-by: default avatarZhengjun Xing <zhengjun.xing@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20220425132211.801228-1-zhengjun.xing@linux.intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      9061dffd
    • James Clark's avatar
      perf tools: Use Python devtools for version autodetection rather than runtime · 630af16e
      James Clark authored
      This fixes the issue where the build will fail if only the Python2
      runtime is installed but the Python3 devtools are installed. Currently
      the workaround is 'make PYTHON=python3'.
      
      Fix it by autodetecting Python based on whether python[x]-config exists
      rather than just python[x] because both are needed for the build. Then
      -config is stripped to find the Python runtime.
      
      Testing
      =======
      
       * Auto detect links with Python3 when the v3 devtools are installed
         and only Python 2 runtime is installed
       * Auto detect links with Python2 when both devtools are installed
       * Sensible warning is printed if no Python devtools are installed
       * 'make PYTHON=x' still automatically sets PYTHON_CONFIG=x-config
       * 'make PYTHON=x' fails if x-config doesn't exist
       * 'make PYTHON=python3' overrides Python2 devtools
       * 'make PYTHON=python2' overrides Python3 devtools
       * 'make PYTHON_CONFIG=x-config' works
       * 'make PYTHON=x PYTHON_CONFIG=x' works
       * 'make PYTHON=missing' reports an error
       * 'make PYTHON_CONFIG=missing' reports an error
      
      Fixes: 79373082 ("perf python: Autodetect python3 binary")
      Signed-off-by: default avatarJames Clark <james.clark@arm.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: James Clark <james.clark@arm.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: https://lore.kernel.org/r/20220309194313.3350126-2-james.clark@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      630af16e
    • Ian Rogers's avatar
      perf stat: Avoid printing cpus with no counters · 570c44a0
      Ian Rogers authored
      perf_evlist's user_requested_cpus can contain CPUs not present in any
      evsel's cpus, for example uncore counters. Avoid printing the prefix and
      trailing \n until the first valid counter is encountered.
      Reviewed-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Cc: Alexander Antonov <alexander.antonov@linux.intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Alexei Starovoitov <ast@kernel.org>
      Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Andrii Nakryiko <andrii@kernel.org>
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Cc: German Gomez <german.gomez@arm.com>
      Cc: James Clark <james.clark@arm.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Fastabend <john.fastabend@gmail.com>
      Cc: John Garry <john.garry@huawei.com>
      Cc: KP Singh <kpsingh@kernel.org>
      Cc: Kajol Jain <kjain@linux.ibm.com>
      Cc: Leo Yan <leo.yan@linaro.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Martin KaFai Lau <kafai@fb.com>
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: Mike Leach <mike.leach@linaro.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Riccardo Mancini <rickyman7@gmail.com>
      Cc: Song Liu <songliubraving@fb.com>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Yonghong Song <yhs@fb.com>
      Link: http://lore.kernel.org/lkml/20220503041757.2365696-4-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      570c44a0
  2. 30 Apr, 2022 2 commits
  3. 29 Apr, 2022 19 commits
  4. 28 Apr, 2022 16 commits