1. 15 Mar, 2022 33 commits
  2. 13 Mar, 2022 2 commits
  3. 12 Mar, 2022 5 commits
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v5.17-2022-03-12' of... · aad611a8
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v5.17-2022-03-12' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix event parser error for hybrid systems
      
       - Fix NULL check against wrong variable in 'perf bench' and in the
         parsing code
      
       - Update arm64 KVM headers from the kernel sources
      
       - Sync cpufeatures header with the kernel sources
      
      * tag 'perf-tools-fixes-for-v5.17-2022-03-12' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf parse: Fix event parser error for hybrid systems
        perf bench: Fix NULL check against wrong variable
        perf parse-events: Fix NULL check against wrong variable
        tools headers cpufeatures: Sync with the kernel sources
        tools kvm headers arm64: Update KVM headers from the kernel sources
      aad611a8
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2022-03-12' of git://anongit.freedesktop.org/drm/drm · 1518a4f6
      Linus Torvalds authored
      Pull drm kconfig fix from Dave Airlie:
       "Thorsten pointed out this had fallen down the cracks and was in -next
        only, I've picked it out, fixed up it's Fixes: line.
      
         - fix regression in Kconfig"
      
      * tag 'drm-fixes-2022-03-12' of git://anongit.freedesktop.org/drm/drm:
        drm/panel: Select DRM_DP_HELPER for DRM_PANEL_EDP
      1518a4f6
    • Zhengjun Xing's avatar
      perf parse: Fix event parser error for hybrid systems · 91c9923a
      Zhengjun Xing authored
      This bug happened on hybrid systems when both cpu_core and cpu_atom
      have the same event name such as "UOPS_RETIRED.MS" while their event
      terms are different, then during perf stat, the event for cpu_atom
      will parse fail and then no output for cpu_atom.
      
      UOPS_RETIRED.MS -> cpu_core/period=0x1e8483,umask=0x4,event=0xc2,frontend=0x8/
      UOPS_RETIRED.MS -> cpu_atom/period=0x1e8483,umask=0x1,event=0xc2/
      
      It is because event terms in the "head" of parse_events_multi_pmu_add
      will be changed to event terms for cpu_core after parsing UOPS_RETIRED.MS
      for cpu_core, then when parsing the same event for cpu_atom, it still
      uses the event terms for cpu_core, but event terms for cpu_atom are
      different with cpu_core, the event parses for cpu_atom will fail. This
      patch fixes it, the event terms should be parsed from the original
      event.
      
      This patch can work for the hybrid systems that have the same event
      in more than 2 PMUs. It also can work in non-hybrid systems.
      
      Before:
      
        # perf stat -v  -e  UOPS_RETIRED.MS  -a sleep 1
      
        Using CPUID GenuineIntel-6-97-1
        UOPS_RETIRED.MS -> cpu_core/period=0x1e8483,umask=0x4,event=0xc2,frontend=0x8/
        Control descriptor is not initialized
        UOPS_RETIRED.MS: 2737845 16068518485 16068518485
      
       Performance counter stats for 'system wide':
      
               2,737,845      cpu_core/UOPS_RETIRED.MS/
      
             1.002553850 seconds time elapsed
      
      After:
      
        # perf stat -v  -e  UOPS_RETIRED.MS  -a sleep 1
      
        Using CPUID GenuineIntel-6-97-1
        UOPS_RETIRED.MS -> cpu_core/period=0x1e8483,umask=0x4,event=0xc2,frontend=0x8/
        UOPS_RETIRED.MS -> cpu_atom/period=0x1e8483,umask=0x1,event=0xc2/
        Control descriptor is not initialized
        UOPS_RETIRED.MS: 1977555 16076950711 16076950711
        UOPS_RETIRED.MS: 568684 8038694234 8038694234
      
       Performance counter stats for 'system wide':
      
               1,977,555      cpu_core/UOPS_RETIRED.MS/
                 568,684      cpu_atom/UOPS_RETIRED.MS/
      
             1.004758259 seconds time elapsed
      
      Fixes: fb081153 ("perf parse-events: Allow config on kernel PMU events")
      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: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/20220307151627.30049-1-zhengjun.xing@linux.intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      91c9923a
    • Weiguo Li's avatar
      perf bench: Fix NULL check against wrong variable · 073a15c3
      Weiguo Li authored
      We did a NULL check after "epollfdp = calloc(...)", but we checked
      "epollfd" instead of "epollfdp".
      Signed-off-by: default avatarWeiguo Li <liwg06@foxmail.com>
      Acked-by: default avatarDavidlohr Bueso <dave@stgolabs.net>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Davidlohr Bueso <dbueso@suse.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/tencent_B5D64530EB9C7DBB8D2C88A0C790F1489D0A@qq.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      073a15c3
    • Weiguo Li's avatar
      perf parse-events: Fix NULL check against wrong variable · a7a72631
      Weiguo Li authored
      We did a null check after "tmp->symbol = strdup(...)", but we checked
      "list->symbol" other than "tmp->symbol".
      Reviewed-by: default avatarJohn Garry <john.garry@huawei.com>
      Signed-off-by: default avatarWeiguo Li <liwg06@foxmail.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/tencent_DF39269807EC9425E24787E6DB632441A405@qq.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      a7a72631