1. 28 Apr, 2022 5 commits
    • Namhyung Kim's avatar
      perf symbol: Pass is_kallsyms to symbols__fixup_end() · 838425f2
      Namhyung Kim authored
      The symbol fixup is necessary for symbols in kallsyms since they don't
      have size info.  So we use the next symbol's address to calculate the
      size.  Now it's also used for user binaries because sometimes they miss
      size for hand-written asm functions.
      
      There's a arch-specific function to handle kallsyms differently but
      currently it cannot distinguish kallsyms from others.  Pass this
      information explicitly to handle it properly.  Note that those arch
      functions will be moved to the generic function so I didn't added it to
      the arch-functions.
      
      Fixes: 3cf6a32f ("perf symbols: Fix symbol size calculation condition")
      Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: John Garry <john.garry@huawei.com>
      Cc: Leo Yan <leo.yan@linaro.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Michael Petlan <mpetlan@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Song Liu <songliubraving@fb.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: linux-s390@vger.kernel.org
      Cc: linuxppc-dev@lists.ozlabs.org
      Link: https://lore.kernel.org/r/20220416004048.1514900-2-namhyung@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      838425f2
    • Timothy Hayes's avatar
      perf test: Add perf_event_attr test for Arm SPE · 3b9a8c8b
      Timothy Hayes authored
      Adds a perf_event_attr test for Arm SPE in which the presence of
      physical addresses are checked when SPE unit is run with pa_enable=1.
      Reviewed-by: default avatarLeo Yan <leo.yan@linaro.org>
      Signed-off-by: default avatarTimothy Hayes <timothy.hayes@arm.com>
      Tested-by: default avatarLeo Yan <leo.yan@linaro.org>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.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: Mark Rutland <mark.rutland@arm.com>
      Cc: Martin KaFai Lau <kafai@fb.com>
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Song Liu <songliubraving@fb.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Yonghong Song <yhs@fb.com>
      Cc: bpf@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: netdev@vger.kernel.org
      Link: https://lore.kernel.org/r/20220421165205.117662-4-timothy.hayes@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      3b9a8c8b
    • Timothy Hayes's avatar
      perf arm-spe: Fix SPE events with phys addresses · 7599b70a
      Timothy Hayes authored
      This patch corrects a bug whereby SPE collection is invoked with
      pa_enable=1 but synthesized events fail to show physical addresses.
      Reviewed-by: default avatarLeo Yan <leo.yan@linaro.org>
      Signed-off-by: default avatarTimothy Hayes <timothy.hayes@arm.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.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: Mark Rutland <mark.rutland@arm.com>
      Cc: Martin KaFai Lau <kafai@fb.com>
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Song Liu <songliubraving@fb.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Yonghong Song <yhs@fb.com>
      Cc: bpf@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: netdev@vger.kernel.org
      Link: https://lore.kernel.org/r/20220421165205.117662-3-timothy.hayes@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      7599b70a
    • Timothy Hayes's avatar
      perf arm-spe: Fix addresses of synthesized SPE events · 4e13f670
      Timothy Hayes authored
      This patch corrects a bug whereby synthesized events from SPE
      samples are missing virtual addresses.
      
      Fixes: 54f7815e ("perf arm-spe: Fill address info for samples")
      Reviewed-by: default avatarLeo Yan <leo.yan@linaro.org>
      Signed-off-by: default avatarTimothy Hayes <timothy.hayes@arm.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: bpf@vger.kernel.org
      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: Leo Yan <leo.yan@linaro.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Martin KaFai Lau <kafai@fb.com>
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: netdev@vger.kernel.org
      Cc: Song Liu <songliubraving@fb.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Yonghong Song <yhs@fb.com>
      Link: https://lore.kernel.org/r/20220421165205.117662-2-timothy.hayes@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      4e13f670
    • Adrian Hunter's avatar
      perf intel-pt: Fix timeless decoding with perf.data directory · de8fd138
      Adrian Hunter authored
      Intel PT does not capture data in separate directories, so do not
      use separate directory processing because it doesn't work for
      timeless decoding. It also looks like it doesn't support one_mmap
      handling.
      
      Example:
      
        Before:
      
          # perf record --kcore -a -e intel_pt/tsc=0/k sleep 0.1
          [ perf record: Woken up 1 times to write data ]
          [ perf record: Captured and wrote 1.799 MB perf.data ]
          # perf script --itrace=bep | head
          #
      
        After:
      
          # perf script --itrace=bep | head
          perf 21073 [000]              psb:  psb offs: 0                       ffffffffaa68faf4 native_write_msr+0x4 ([kernel.kallsyms])
          perf 21073 [000]              cbr:  cbr: 45 freq: 4505 MHz (161%)     ffffffffaa68faf4 native_write_msr+0x4 ([kernel.kallsyms])
          perf 21073 [000]          1       branches:k:                 0 [unknown] ([unknown]) => ffffffffaa68faf6 native_write_msr+0x6 ([kernel.kallsyms])
          perf 21073 [000]          1       branches:k:  ffffffffaa68faf8 native_write_msr+0x8 ([kernel.kallsyms]) => ffffffffaa61aab0 pt_config_start+0x60 ([kernel.kallsyms])
          perf 21073 [000]          1       branches:k:  ffffffffaa61aabd pt_config_start+0x6d ([kernel.kallsyms]) => ffffffffaa61b8ad pt_event_start+0x27d ([kernel.kallsyms])
          perf 21073 [000]          1       branches:k:  ffffffffaa61b8bb pt_event_start+0x28b ([kernel.kallsyms]) => ffffffffaa61ba60 pt_event_add+0x40 ([kernel.kallsyms])
          perf 21073 [000]          1       branches:k:  ffffffffaa61ba76 pt_event_add+0x56 ([kernel.kallsyms]) => ffffffffaa880e86 event_sched_in+0xc6 ([kernel.kallsyms])
          perf 21073 [000]          1       branches:k:  ffffffffaa880e9b event_sched_in+0xdb ([kernel.kallsyms]) => ffffffffaa880ea5 event_sched_in+0xe5 ([kernel.kallsyms])
          perf 21073 [000]          1       branches:k:  ffffffffaa880eba event_sched_in+0xfa ([kernel.kallsyms]) => ffffffffaa880f96 event_sched_in+0x1d6 ([kernel.kallsyms])
          perf 21073 [000]          1       branches:k:  ffffffffaa880fc8 event_sched_in+0x208 ([kernel.kallsyms]) => ffffffffaa880ec0 event_sched_in+0x100 ([kernel.kallsyms])
      
      Fixes: bb6be405 ("perf session: Load data directory files for analysis")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Link: https://lore.kernel.org/r/20220428093109.274641-1-adrian.hunter@intel.com
      Cc: Ian Rogers <irogers@google.com>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: linux-kernel@vger.kernel.org
      de8fd138
  2. 27 Apr, 2022 8 commits
  3. 26 Apr, 2022 5 commits
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v5.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 46cf2c61
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
      
       - Fix some register offsets on Intel Alderlake
      
       - Fix the order the UFS and SDC pins on Qualcomm SM6350
      
       - Fix a build error in Mediatek Moore.
      
       - Fix a pin function table in the Sunplus SP7021.
      
       - Fix some Kconfig and static keywords on the Samsung Tesla FSD SoC.
      
       - Fix up the EOI function for edge triggered IRQs and keep the block
         clock enabled for level IRQs in the STM32 driver.
      
       - Fix some bits and order in the Rockchip RK3308 driver.
      
       - Handle the errorpath in the Pistachio driver probe() properly.
      
      * tag 'pinctrl-v5.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        pinctrl: pistachio: fix use of irq_of_parse_and_map()
        pinctrl: stm32: Keep pinctrl block clock enabled when LEVEL IRQ requested
        pinctrl: rockchip: sort the rk3308_mux_recalced_data entries
        pinctrl: rockchip: fix RK3308 pinmux bits
        pinctrl: stm32: Do not call stm32_gpio_get() for edge triggered IRQs in EOI
        pinctrl: Fix an error in pin-function table of SP7021
        pinctrl: samsung: fix missing GPIOLIB on ARM64 Exynos config
        pinctrl: mediatek: moore: Fix build error
        pinctrl: qcom: sm6350: fix order of UFS & SDC pins
        pinctrl: alderlake: Fix register offsets for ADL-N variant
        pinctrl: samsung: staticize fsd_pin_ctrl
      46cf2c61
    • Linus Torvalds's avatar
      Merge tag 'for-5.18/fbdev-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev · cf424ef0
      Linus Torvalds authored
      Pull fbdev fixes and updates from Helge Deller:
       "A bunch of outstanding fbdev patches - all trivial and small"
      
      * tag 'for-5.18/fbdev-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
        video: fbdev: clps711x-fb: Use syscon_regmap_lookup_by_phandle
        video: fbdev: mmp: replace usage of found with dedicated list iterator variable
        video: fbdev: sh_mobile_lcdcfb: Remove sh_mobile_lcdc_check_var() declaration
        video: fbdev: i740fb: Error out if 'pixclock' equals zero
        video: fbdev: i740fb: use memset_io() to clear screen
        video: fbdev: s3fb: Error out if 'pixclock' equals zero
        video: fbdev: arkfb: Error out if 'pixclock' equals zero
        video: fbdev: tridentfb: Error out if 'pixclock' equals zero
        video: fbdev: vt8623fb: Error out if 'pixclock' equals zero
        video: fbdev: kyro: Error out if 'lineclock' equals zero
        video: fbdev: neofb: Fix the check of 'var->pixclock'
        video: fbdev: imxfb: Fix missing of_node_put in imxfb_probe
        video: fbdev: omap: Make it CCF clk API compatible
        video: fbdev: aty/matrox/...: Prepare cleanup of powerpc's asm/prom.h
        video: fbdev: pm2fb: Fix a kernel-doc formatting issue
        linux/fb.h: Spelling s/palette/palette/
        video: fbdev: sis: fix potential NULL dereference in sisfb_post_sis300()
        video: fbdev: pxafb: use if else instead
        video: fbdev: udlfb: properly check endpoint type
        video: fbdev: of: display_timing: Remove a redundant zeroing of memory
      cf424ef0
    • Linus Torvalds's avatar
      Merge tag 'gfs2-v5.18-rc4-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 · 4fad37d5
      Linus Torvalds authored
      Pull gfs2 fix from Andreas Gruenbacher:
      
       - Only re-check for direct I/O writes past the end of the file after
         re-acquiring the inode glock.
      
      * tag 'gfs2-v5.18-rc4-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
        gfs2: Don't re-check for write past EOF unnecessarily
      4fad37d5
    • Linus Torvalds's avatar
      Merge tag 'for-5.18-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · fd574a2f
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
      
       - direct IO fixes:
      
            - restore passing file offset to correctly calculate checksums
              when repairing on read and bio split happens
      
            - use correct bio when sumitting IO on zoned filesystem
      
       - zoned mode fixes:
      
            - fix selection of device to correctly calculate device
              capabilities when allocating a new bio
      
            - use a dedicated lock for exclusion during relocation
      
            - fix leaked plug after failure syncing log
      
       - fix assertion during scrub and relocation
      
      * tag 'for-5.18-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: zoned: use dedicated lock for data relocation
        btrfs: fix assertion failure during scrub due to block group reallocation
        btrfs: fix direct I/O writes for split bios on zoned devices
        btrfs: fix direct I/O read repair for split bios
        btrfs: fix and document the zoned device choice in alloc_new_bio
        btrfs: fix leaked plug after failure syncing log on zoned filesystems
      fd574a2f
    • Andreas Gruenbacher's avatar
      gfs2: Don't re-check for write past EOF unnecessarily · e57f9af7
      Andreas Gruenbacher authored
      Only re-check for direct I/O writes past the end of the file after
      re-acquiring the inode glock.
      Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
      e57f9af7
  4. 25 Apr, 2022 3 commits
  5. 24 Apr, 2022 9 commits
  6. 23 Apr, 2022 10 commits